<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>perl5180delta - what is new for perl v5.18.0 - Perldoc Browser</title>
    <link rel="search" href="https://perldoc.perl.org/opensearch.xml" type="application/opensearchdescription+xml" title="Perldoc Browser">
    <link rel="canonical" href="https://perldoc.perl.org/perl5180delta">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/10.5.0/styles/stackoverflow-light.min.css" integrity="sha512-cG1IdFxqipi3gqLmksLtuk13C+hBa57a6zpWxMeoY3Q9O6ooFxq50DayCdm0QrDgZjMUn23z/0PMZlgft7Yp5Q==" crossorigin="anonymous" />
    <style>
      body {
        background: #f4f4f5;
        color: #020202;
      }
      .navbar-dark {
        background-image: -webkit-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: -o-linear-gradient(top, #005f85 0, #002e49 100%);
        background-image: linear-gradient(to bottom, #005f85 0, #002e49 100%);
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff005f85', endColorstr='#ff002e49', GradientType=0);
        background-repeat: repeat-x;
      }
      .navbar-dark .navbar-nav .nav-link,
      .navbar-dark .navbar-nav .nav-link:focus { color: #fff }
      .navbar-dark .navbar-nav .nav-link:hover { color: #ffef68 }
      #wrapperlicious {
        margin: 0 auto;
        font: 0.9em 'Helvetica Neue', Helvetica, sans-serif;
        font-weight: normal;
        line-height: 1.5em;
        margin: 0;
        padding: 0;
      }
      #wrapperlicious h1 { font-size: 1.5em }
      #wrapperlicious h2 { font-size: 1.3em }
      #wrapperlicious h3 { font-size: 1.1em }
      #wrapperlicious h4 { font-size: 0.9em }
      #wrapperlicious h1, #wrapperlicious h2, #wrapperlicious h3,
      #wrapperlicious h4, #wrapperlicious dt {
        color: #020202;
        margin-top: 1em;
        margin-bottom: 1em;
        position: relative;
        font-weight: bold;
      }
      #wrapperlicious a { color: inherit; text-decoration: underline }
      #wrapperlicious #toc { text-decoration: none }
      #wrapperlicious a:hover { color: #2a2a2a }
      #wrapperlicious a img { border: 0 }
      #wrapperlicious :not(pre) > code {
        color: inherit;
        background-color: rgba(0, 0, 0, 0.04);
        border-radius: 3px;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        padding: 0.3em;
      }
      #wrapperlicious dd {
        margin: 0;
        margin-left: 2em;
      }
      #wrapperlicious dt {
        color: #2a2a2a;
        font-weight: bold;
        margin-left: 0.9em;
      }
      #wrapperlicious p {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious li > p {
        margin-bottom: 0;
        margin-top: 0;
      }
      #wrapperlicious pre {
        border: 1px solid #c1c1c1;
        border-radius: 3px;
        font: 100% Consolas, Menlo, Monaco, monospace;
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious pre > code {
        display: block;
        background-color: #f6f6f6;
        font: 0.9em Consolas, Menlo, Monaco, monospace;
        line-height: 1.5em;
        text-align: left;
        white-space: pre;
        padding: 1em;
      }
      #wrapperlicious dl, #wrapperlicious ol, #wrapperlicious ul {
        margin-bottom: 1em;
        margin-top: 1em;
      }
      #wrapperlicious ul {
        list-style-type: square;
      }
      #wrapperlicious ul ul {
        margin-bottom: 0px;
        margin-top: 0px;
      }
      #footer {
        font-size: 0.8em;
        padding-top: 0.5em;
        text-align: center;
      }
      #more {
        display: inline;
        font-size: 0.8em;
      }
      #perldocdiv {
        background-color: #fff;
        border: 1px solid #c1c1c1;
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
        margin-left: auto;
        margin-right: auto;
        padding: 3em;
        padding-top: 1em;
        max-width: 960px;
      }
      #moduleversion { float: right }
      #wrapperlicious .leading-notice {
        font-style: italic;
        padding-left: 1em;
        margin-top: 1em;
        margin-bottom: 1em;
      }
      #wrapperlicious .permalink {
        display: none;
        left: -0.75em;
        position: absolute;
        padding-right: 0.25em;
        text-decoration: none;
      }
      #wrapperlicious h1:hover .permalink, #wrapperlicious h2:hover .permalink,
      #wrapperlicious h3:hover .permalink, #wrapperlicious h4:hover .permalink,
      #wrapperlicious dt:hover .permalink {
        display: block;
      }
    </style>
    <!-- Global site tag (gtag.js) - Google Analytics -->
    <script async src="https://www.googletagmanager.com/gtag/js?id=G-KVNWBNT5FB"></script>
    <script>
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());

      gtag('config', 'G-KVNWBNT5FB');
      gtag('config', 'UA-50555-3');
    </script>
  </head>
  <body>
    <nav class="navbar navbar-expand-md navbar-dark bg-dark justify-content-between">
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <a class="navbar-brand" href="https://perldoc.perl.org/">Perldoc Browser</a>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5180delta.html#" id="dropdownlink-stable" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">5.35.0</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-stable">
          <a class="dropdown-item" href="https://perldoc.perl.org/perl5180delta">Latest</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.2/perl5180delta">5.38.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.1/perl5180delta">5.38.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0/perl5180delta">5.38.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.3/perl5180delta">5.36.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.2/perl5180delta">5.36.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.1/perl5180delta">5.36.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.36.0/perl5180delta">5.36.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.3/perl5180delta">5.34.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.2/perl5180delta">5.34.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.1/perl5180delta">5.34.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.34.0/perl5180delta">5.34.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.1/perl5180delta">5.32.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.32.0/perl5180delta">5.32.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.3/perl5180delta">5.30.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.2/perl5180delta">5.30.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.1/perl5180delta">5.30.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.30.0/perl5180delta">5.30.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.3/perl5180delta">5.28.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.2/perl5180delta">5.28.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.1/perl5180delta">5.28.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.28.0/perl5180delta">5.28.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.3/perl5180delta">5.26.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.2/perl5180delta">5.26.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.1/perl5180delta">5.26.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.26.0/perl5180delta">5.26.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.4/perl5180delta">5.24.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.3/perl5180delta">5.24.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.2/perl5180delta">5.24.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.1/perl5180delta">5.24.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.24.0/perl5180delta">5.24.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.4/perl5180delta">5.22.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.3/perl5180delta">5.22.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.2/perl5180delta">5.22.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.1/perl5180delta">5.22.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.22.0/perl5180delta">5.22.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.3/perl5180delta">5.20.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.2/perl5180delta">5.20.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.1/perl5180delta">5.20.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.20.0/perl5180delta">5.20.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.4/perl5180delta">5.18.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.3/perl5180delta">5.18.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.2/perl5180delta">5.18.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.1/perl5180delta">5.18.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.18.0/perl5180delta">5.18.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.3/perl5180delta">5.16.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.2/perl5180delta">5.16.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.1/perl5180delta">5.16.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.16.0/perl5180delta">5.16.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.4/perl5180delta">5.14.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.3/perl5180delta">5.14.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.2/perl5180delta">5.14.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.1/perl5180delta">5.14.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.14.0/perl5180delta">5.14.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.5/perl5180delta">5.12.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.4/perl5180delta">5.12.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.3/perl5180delta">5.12.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.2/perl5180delta">5.12.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.1/perl5180delta">5.12.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.12.0/perl5180delta">5.12.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.1/perl5180delta">5.10.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.10.0/perl5180delta">5.10.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.9/perl5180delta">5.8.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.8/perl5180delta">5.8.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.7/perl5180delta">5.8.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.6/perl5180delta">5.8.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.5/perl5180delta">5.8.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.4/perl5180delta">5.8.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.3/perl5180delta">5.8.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.2/perl5180delta">5.8.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.1/perl5180delta">5.8.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.8.0/perl5180delta">5.8.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.2/perl5180delta">5.6.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.1/perl5180delta">5.6.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.6.0/perl5180delta">5.6.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_04/perl5180delta">5.005_04</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_03/perl5180delta">5.005_03</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_02/perl5180delta">5.005_02</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005_01/perl5180delta">5.005_01</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.005/perl5180delta">5.005</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5180delta.html#" id="dropdownlink-dev" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Dev</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-dev">
          <a class="dropdown-item" href="https://perldoc.perl.org/blead/perl5180delta">blead</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.6/perl5180delta">5.39.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.5/perl5180delta">5.39.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.4/perl5180delta">5.39.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.3/perl5180delta">5.39.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.2/perl5180delta">5.39.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.39.1/perl5180delta">5.39.1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC2/perl5180delta">5.38.0-RC2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.38.0-RC1/perl5180delta">5.38.0-RC1</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.11/perl5180delta">5.37.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.10/perl5180delta">5.37.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.9/perl5180delta">5.37.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.8/perl5180delta">5.37.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.7/perl5180delta">5.37.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.6/perl5180delta">5.37.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.5/perl5180delta">5.37.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.4/perl5180delta">5.37.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.3/perl5180delta">5.37.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.2/perl5180delta">5.37.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.1/perl5180delta">5.37.1</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.37.0/perl5180delta">5.37.0</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.11/perl5180delta">5.35.11</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.10/perl5180delta">5.35.10</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.9/perl5180delta">5.35.9</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.8/perl5180delta">5.35.8</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.7/perl5180delta">5.35.7</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.6/perl5180delta">5.35.6</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.5/perl5180delta">5.35.5</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.4/perl5180delta">5.35.4</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.3/perl5180delta">5.35.3</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.2/perl5180delta">5.35.2</a>
          <a class="dropdown-item" href="https://perldoc.perl.org/5.35.1/perl5180delta">5.35.1</a>
          <a class="dropdown-item active" href="perl5180delta.html">5.35.0</a>
        </div>
      </li>
      <li class="nav-item dropdown text-nowrap">
        <a class="nav-link dropdown-toggle" href="perl5180delta.html#" id="dropdownlink-nav" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Documentation</a>
        <div class="dropdown-menu" aria-labelledby="dropdownlink-nav">
          <a class="dropdown-item" href="perl.html">Perl</a>
          <a class="dropdown-item" href="perlintro.html">Intro</a>
          <a class="dropdown-item" href="perl.html#Tutorials">Tutorials</a>
          <a class="dropdown-item" href="perlfaq.html">FAQs</a>
          <a class="dropdown-item" href="perl.html#Reference-Manual">Reference</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlop.html">Operators</a>
          <a class="dropdown-item" href="functions.html">Functions</a>
          <a class="dropdown-item" href="variables.html">Variables</a>
          <a class="dropdown-item" href="modules.html">Modules</a>
          <a class="dropdown-item" href="perlutil.html">Utilities</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="perlcommunity.html">Community</a>
          <a class="dropdown-item" href="perlhist.html">History</a>
        </div>
      </li>
    </ul>
    <ul class="navbar-nav">
      <script>
        function set_expand (expand) {
          var perldocdiv = document.getElementById('perldocdiv');
          var width = window.getComputedStyle(perldocdiv).getPropertyValue('max-width');
          var expanded = (width == '' || width == 'none') ? true : false;
          if (expand === null) {
            expand = !expanded;
          }
          if ((expand && !expanded) || (!expand && expanded)) {
            perldocdiv.style.setProperty('max-width', expand ? 'none' : '960px');
            var button_classlist = document.getElementById('content-expand-button').classList;
            if (expand) {
              button_classlist.add('btn-light');
              button_classlist.remove('btn-outline-light');
            } else {
              button_classlist.add('btn-outline-light');
              button_classlist.remove('btn-light');
            }
          }
          return expand;
        }
        function toggle_expand () {
          var expand = set_expand(null);
          document.cookie = 'perldoc_expand=' + (expand ? 1 : 0) + '; path=/; expires=Tue, 19 Jan 2038 03:14:07 UTC';
        }
        function read_expand () {
          return document.cookie.split(';').some(function (item) { return item.indexOf('perldoc_expand=1') >= 0 });
        }
        if (document.readyState === 'loading') {
          document.addEventListener('DOMContentLoaded', function () {
            if (read_expand()) {
              set_expand(true);
            }
          });
        } else if (read_expand()) {
          set_expand(true);
        }
      </script>
      <button id="content-expand-button" type="button" class="btn btn-outline-light d-none d-lg-inline-block mr-2" onclick="toggle_expand()">Expand</button>
    <ul>
    <form class="form-inline" method="get" action="https://perldoc.perl.org/5.35.0/search">
      <input class="form-control mr-3" type="search" name="q" placeholder="Search" aria-label="Search">
    </form>
  </div>
</nav>

    <div id="wrapperlicious" class="container-fluid">
      <div id="perldocdiv">
        <div id="links">
          <a href="perl5180delta.html">perl5180delta</a>
          <div id="more">
            (<a href="perl5180delta.txt">source</a>,
            <a href="https://metacpan.org/pod/perl5180delta">CPAN</a>)
          </div>
        </div>
        <div class="leading-notice">
          You are viewing the version of this documentation from Perl 5.35.0.
            This is a development version of Perl.
        </div>
        <h1><a id="toc">CONTENTS</a></h1>
                  <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#NAME">NAME</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#DESCRIPTION">DESCRIPTION</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Core-Enhancements">Core Enhancements</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#New-mechanism-for-experimental-features">New mechanism for experimental features</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Hash-overhaul">Hash overhaul</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Hash-randomization">Hash randomization</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#New-hash-functions">New hash functions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#PERL_HASH_SEED-environment-variable-now-takes-a-hex-value">PERL_HASH_SEED environment variable now takes a hex value</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#PERL_PERTURB_KEYS-environment-variable-added">PERL_PERTURB_KEYS environment variable added</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Hash::Util::hash_seed()-now-returns-a-string">Hash::Util::hash_seed() now returns a string</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Output-of-PERL_HASH_SEED_DEBUG-has-been-changed">Output of PERL_HASH_SEED_DEBUG has been changed</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Upgrade-to-Unicode-6.2">Upgrade to Unicode 6.2</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Character-name-aliases-may-now-include-non-Latin1-range-characters">Character name aliases may now include non-Latin1-range characters</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#New-DTrace-probes">New DTrace probes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#$%7B%5ELAST_FH%7D">${^LAST_FH}</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Regular-Expression-Set-Operations">Regular Expression Set Operations</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Lexical-subroutines">Lexical subroutines</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Computed-Labels">Computed Labels</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#More-CORE::-subs">More CORE:: subs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#kill-with-negative-signal-names">kill with negative signal names</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Security">Security</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#See-also:-hash-overhaul">See also: hash overhaul</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Storable-security-warning-in-documentation">Storable security warning in documentation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Locale::Maketext-allowed-code-injection-via-a-malicious-template">Locale::Maketext allowed code injection via a malicious template</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Avoid-calling-memset-with-a-negative-count">Avoid calling memset with a negative count</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Incompatible-Changes">Incompatible Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#See-also:-hash-overhaul1">See also: hash overhaul</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#An-unknown-character-name-in-%5CN%7B...%7D-is-now-a-syntax-error">An unknown character name in \N{...} is now a syntax error</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Formerly-deprecated-characters-in-%5CN%7B%7D-character-name-aliases-are-now-errors.">Formerly deprecated characters in \N{} character name aliases are now errors.</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#%5CN%7BBELL%7D-now-refers-to-U+1F514-instead-of-U+0007">\N{BELL} now refers to U+1F514 instead of U+0007</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#New-Restrictions-in-Multi-Character-Case-Insensitive-Matching-in-Regular-Expression-Bracketed-Character-Classes">New Restrictions in Multi-Character Case-Insensitive Matching in Regular Expression Bracketed Character Classes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Explicit-rules-for-variable-names-and-identifiers">Explicit rules for variable names and identifiers</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Vertical-tabs-are-now-whitespace">Vertical tabs are now whitespace</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#/(?%7B%7D)/-and-/(??%7B%7D)/-have-been-heavily-reworked">/(?{})/ and /(??{})/ have been heavily reworked</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Stricter-parsing-of-substitution-replacement">Stricter parsing of substitution replacement</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#given-now-aliases-the-global-$_">given now aliases the global $_</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#The-smartmatch-family-of-features-are-now-experimental">The smartmatch family of features are now experimental</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Lexical-$_-is-now-experimental">Lexical $_ is now experimental</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#readline()-with-$/-=-%5CN-now-reads-N-characters,-not-N-bytes">readline() with $/ = \N now reads N characters, not N bytes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Overridden-glob-is-now-passed-one-argument">Overridden glob is now passed one argument</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Here-doc-parsing">Here doc parsing</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Alphanumeric-operators-must-now-be-separated-from-the-closing-delimiter-of-regular-expressions">Alphanumeric operators must now be separated from the closing delimiter of regular expressions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#qw(...)-can-no-longer-be-used-as-parentheses">qw(...) can no longer be used as parentheses</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Interaction-of-lexical-and-default-warnings">Interaction of lexical and default warnings</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#state-sub-and-our-sub">state sub and our sub</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Defined-values-stored-in-environment-are-forced-to-byte-strings">Defined values stored in environment are forced to byte strings</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#require-dies-for-unreadable-files">require dies for unreadable files</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#gv_fetchmeth_*-and-SUPER">gv_fetchmeth_* and SUPER</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#split&#39;s-first-argument-is-more-consistently-interpreted">split&#39;s first argument is more consistently interpreted</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Deprecations">Deprecations</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Module-removals">Module removals</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Deprecated-Utilities">Deprecated Utilities</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#PL_sv_objcount">PL_sv_objcount</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Five-additional-characters-should-be-escaped-in-patterns-with-/x">Five additional characters should be escaped in patterns with /x</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#User-defined-charnames-with-surprising-whitespace">User-defined charnames with surprising whitespace</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Various-XS-callable-functions-are-now-deprecated">Various XS-callable functions are now deprecated</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Certain-rare-uses-of-backslashes-within-regexes-are-now-deprecated">Certain rare uses of backslashes within regexes are now deprecated</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Splitting-the-tokens-(?-and-(*-in-regular-expressions">Splitting the tokens (? and (* in regular expressions</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Pre-PerlIO-IO-implementations">Pre-PerlIO IO implementations</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Future-Deprecations">Future Deprecations</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Performance-Enhancements">Performance Enhancements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Modules-and-Pragmata">Modules and Pragmata</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#New-Modules-and-Pragmata">New Modules and Pragmata</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Updated-Modules-and-Pragmata">Updated Modules and Pragmata</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Removed-Modules-and-Pragmata">Removed Modules and Pragmata</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Documentation">Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Changes-to-Existing-Documentation">Changes to Existing Documentation</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#perlcheat">perlcheat</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#perldata">perldata</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#perldiag">perldiag</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#perlfaq">perlfaq</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#perlfunc">perlfunc</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#perlop">perlop</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Diagnostics">Diagnostics</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#New-Diagnostics">New Diagnostics</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#New-Errors">New Errors</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#New-Warnings">New Warnings</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Changes-to-Existing-Diagnostics">Changes to Existing Diagnostics</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Utility-Changes">Utility Changes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#h2xs">h2xs</a>
              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Configuration-and-Compilation">Configuration and Compilation</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Testing">Testing</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Platform-Support">Platform Support</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Discontinued-Platforms">Discontinued Platforms</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Platform-Specific-Notes">Platform-Specific Notes</a>
                            <ul>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#AIX">AIX</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#clang++">clang++</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#C++">C++</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Darwin">Darwin</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Haiku">Haiku</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#MidnightBSD">MidnightBSD</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Solaris">Solaris</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#VMS">VMS</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Win32">Win32</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#WinCE">WinCE</a>
              </li>
          </ul>

              </li>
          </ul>

              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Internal-Changes">Internal Changes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Selected-Bug-Fixes">Selected Bug Fixes</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Known-Problems">Known Problems</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Obituary">Obituary</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Acknowledgements">Acknowledgements</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#Reporting-Bugs">Reporting Bugs</a>
              </li>
              <li>
                <a class="text-decoration-none" href="perl5180delta.html#SEE-ALSO">SEE ALSO</a>
              </li>
          </ul>

      <h1 id="NAME"><a class="permalink" href="perl5180delta.html#NAME">#</a>NAME</h1>

<p>perl5180delta - what is new for perl v5.18.0</p>

<h1 id="DESCRIPTION"><a class="permalink" href="perl5180delta.html#DESCRIPTION">#</a>DESCRIPTION</h1>

<p>This document describes differences between the v5.16.0 release and the v5.18.0 release.</p>

<p>If you are upgrading from an earlier release such as v5.14.0, first read <a href="perl5160delta.html">perl5160delta</a>, which describes differences between v5.14.0 and v5.16.0.</p>

<h1 id="Core-Enhancements"><a class="permalink" href="perl5180delta.html#Core-Enhancements">#</a><a id="Core"></a>Core Enhancements</h1>

<h2 id="New-mechanism-for-experimental-features"><a class="permalink" href="perl5180delta.html#New-mechanism-for-experimental-features">#</a><a id="New"></a>New mechanism for experimental features</h2>

<p>Newly-added experimental features will now require this incantation:</p>

<pre><code>no warnings &quot;experimental::feature_name&quot;;
use feature &quot;feature_name&quot;;  # would warn without the prev line</code></pre>

<p>There is a new warnings category, called &quot;experimental&quot;, containing warnings that the <a href="feature.html">feature</a> pragma emits when enabling experimental features.</p>

<p>Newly-added experimental features will also be given special warning IDs, which consist of &quot;experimental::&quot; followed by the name of the feature. (The plan is to extend this mechanism eventually to all warnings, to allow them to be enabled or disabled individually, and not just by category.)</p>

<p>By saying</p>

<pre><code>no warnings &quot;experimental::feature_name&quot;;</code></pre>

<p>you are taking responsibility for any breakage that future changes to, or removal of, the feature may cause.</p>

<p>Since some features (like <code>~~</code> or <code>my $_</code>) now emit experimental warnings, and you may want to disable them in code that is also run on perls that do not recognize these warning categories, consider using the <code>if</code> pragma like this:</p>

<pre><code>no if $] &gt;= 5.018, warnings =&gt; &quot;experimental::feature_name&quot;;</code></pre>

<p>Existing experimental features may begin emitting these warnings, too. Please consult <a href="perlexperiment.html">perlexperiment</a> for information on which features are considered experimental.</p>

<h2 id="Hash-overhaul"><a class="permalink" href="perl5180delta.html#Hash-overhaul">#</a><a id="Hash"></a>Hash overhaul</h2>

<p>Changes to the implementation of hashes in perl v5.18.0 will be one of the most visible changes to the behavior of existing code.</p>

<p>By default, two distinct hash variables with identical keys and values may now provide their contents in a different order where it was previously identical.</p>

<p>When encountering these changes, the key to cleaning up from them is to accept that <b>hashes are unordered collections</b> and to act accordingly.</p>

<h3 id="Hash-randomization"><a class="permalink" href="perl5180delta.html#Hash-randomization">#</a><a id="Hash1"></a>Hash randomization</h3>

<p>The seed used by Perl&#39;s hash function is now random. This means that the order which keys/values will be returned from functions like <code>keys()</code>, <code>values()</code>, and <code>each()</code> will differ from run to run.</p>

<p>This change was introduced to make Perl&#39;s hashes more robust to algorithmic complexity attacks, and also because we discovered that it exposes hash ordering dependency bugs and makes them easier to track down.</p>

<p>Toolchain maintainers might want to invest in additional infrastructure to test for things like this. Running tests several times in a row and then comparing results will make it easier to spot hash order dependencies in code. Authors are strongly encouraged not to expose the key order of Perl&#39;s hashes to insecure audiences.</p>

<p>Further, every hash has its own iteration order, which should make it much more difficult to determine what the current hash seed is.</p>

<h3 id="New-hash-functions"><a class="permalink" href="perl5180delta.html#New-hash-functions">#</a><a id="New1"></a>New hash functions</h3>

<p>Perl v5.18 includes support for multiple hash functions, and changed the default (to ONE_AT_A_TIME_HARD), you can choose a different algorithm by defining a symbol at compile time. For a current list, consult the <i>INSTALL</i> document. Note that as of Perl v5.18 we can only recommend use of the default or SIPHASH. All the others are known to have security issues and are for research purposes only.</p>

<h3 id="PERL_HASH_SEED-environment-variable-now-takes-a-hex-value"><a class="permalink" href="perl5180delta.html#PERL_HASH_SEED-environment-variable-now-takes-a-hex-value">#</a><a id="PERL_HASH_SEED"></a>PERL_HASH_SEED environment variable now takes a hex value</h3>

<p><code>PERL_HASH_SEED</code> no longer accepts an integer as a parameter; instead the value is expected to be a binary value encoded in a hex string, such as &quot;0xf5867c55039dc724&quot;. This is to make the infrastructure support hash seeds of arbitrary lengths, which might exceed that of an integer. (SipHash uses a 16 byte seed.)</p>

<h3 id="PERL_PERTURB_KEYS-environment-variable-added"><a class="permalink" href="perl5180delta.html#PERL_PERTURB_KEYS-environment-variable-added">#</a><a id="PERL_PERTURB_KEYS"></a>PERL_PERTURB_KEYS environment variable added</h3>

<p>The <code>PERL_PERTURB_KEYS</code> environment variable allows one to control the level of randomization applied to <code>keys</code> and friends.</p>

<p>When <code>PERL_PERTURB_KEYS</code> is 0, perl will not randomize the key order at all. The chance that <code>keys</code> changes due to an insert will be the same as in previous perls, basically only when the bucket size is changed.</p>

<p>When <code>PERL_PERTURB_KEYS</code> is 1, perl will randomize keys in a non-repeatable way. The chance that <code>keys</code> changes due to an insert will be very high. This is the most secure and default mode.</p>

<p>When <code>PERL_PERTURB_KEYS</code> is 2, perl will randomize keys in a repeatable way. Repeated runs of the same program should produce the same output every time.</p>

<p><code>PERL_HASH_SEED</code> implies a non-default <code>PERL_PERTURB_KEYS</code> setting. Setting <code>PERL_HASH_SEED=0</code> (exactly one 0) implies <code>PERL_PERTURB_KEYS=0</code> (hash key randomization disabled); setting <code>PERL_HASH_SEED</code> to any other value implies <code>PERL_PERTURB_KEYS=2</code> (deterministic and repeatable hash key randomization). Specifying <code>PERL_PERTURB_KEYS</code> explicitly to a different level overrides this behavior.</p>

<h3 id="Hash::Util::hash_seed()-now-returns-a-string"><a class="permalink" href="perl5180delta.html#Hash::Util::hash_seed()-now-returns-a-string">#</a><a id="Hash2"></a><a id="Hash::Util::hash_seed-now-returns-a-string"></a>Hash::Util::hash_seed() now returns a string</h3>

<p>Hash::Util::hash_seed() now returns a string instead of an integer. This is to make the infrastructure support hash seeds of arbitrary lengths which might exceed that of an integer. (SipHash uses a 16 byte seed.)</p>

<h3 id="Output-of-PERL_HASH_SEED_DEBUG-has-been-changed"><a class="permalink" href="perl5180delta.html#Output-of-PERL_HASH_SEED_DEBUG-has-been-changed">#</a><a id="Output"></a>Output of PERL_HASH_SEED_DEBUG has been changed</h3>

<p>The environment variable PERL_HASH_SEED_DEBUG now makes perl show both the hash function perl was built with, <i>and</i> the seed, in hex, in use for that process. Code parsing this output, should it exist, must change to accommodate the new format. Example of the new format:</p>

<pre><code class="plaintext">$ PERL_HASH_SEED_DEBUG=1 ./perl -e1
HASH_FUNCTION = MURMUR3 HASH_SEED = 0x1476bb9f</code></pre>

<h2 id="Upgrade-to-Unicode-6.2"><a class="permalink" href="perl5180delta.html#Upgrade-to-Unicode-6.2">#</a><a id="Upgrade"></a>Upgrade to Unicode 6.2</h2>

<p>Perl now supports Unicode 6.2. A list of changes from Unicode 6.1 is at <a href="http://www.unicode.org/versions/Unicode6.2.0">http://www.unicode.org/versions/Unicode6.2.0</a>.</p>

<h2 id="Character-name-aliases-may-now-include-non-Latin1-range-characters"><a class="permalink" href="perl5180delta.html#Character-name-aliases-may-now-include-non-Latin1-range-characters">#</a><a id="Character"></a>Character name aliases may now include non-Latin1-range characters</h2>

<p>It is possible to define your own names for characters for use in <code>\N{...}</code>, <code>charnames::vianame()</code>, etc. These names can now be comprised of characters from the whole Unicode range. This allows for names to be in your native language, and not just English. Certain restrictions apply to the characters that may be used (you can&#39;t define a name that has punctuation in it, for example). See <a href="charnames.html#CUSTOM-ALIASES">&quot;CUSTOM ALIASES&quot; in charnames</a>.</p>

<h2 id="New-DTrace-probes"><a class="permalink" href="perl5180delta.html#New-DTrace-probes">#</a><a id="New2"></a>New DTrace probes</h2>

<p>The following new DTrace probes have been added:</p>

<ul>

<li><p><code>op-entry</code></p>

</li>
<li><p><code>loading-file</code></p>

</li>
<li><p><code>loaded-file</code></p>

</li>
</ul>

<h2 id="${^LAST_FH}"><a class="permalink" href="perl5180delta.html#$%7B%5ELAST_FH%7D">#</a><a id="LAST_FH"></a><code>${^LAST_FH}</code></h2>

<p>This new variable provides access to the filehandle that was last read. This is the handle used by <code>$.</code> and by <code>tell</code> and <code>eof</code> without arguments.</p>

<h2 id="Regular-Expression-Set-Operations"><a class="permalink" href="perl5180delta.html#Regular-Expression-Set-Operations">#</a><a id="Regular"></a>Regular Expression Set Operations</h2>

<p>This is an <b>experimental</b> feature to allow matching against the union, intersection, etc., of sets of code points, similar to <a href="./Unicode::Regex::Set.html">Unicode::Regex::Set</a>. It can also be used to extend <code>/x</code> processing to [bracketed] character classes, and as a replacement of user-defined properties, allowing more complex expressions than they do. See <a href="perlrecharclass.html#Extended-Bracketed-Character-Classes">&quot;Extended Bracketed Character Classes&quot; in perlrecharclass</a>.</p>

<h2 id="Lexical-subroutines"><a class="permalink" href="perl5180delta.html#Lexical-subroutines">#</a><a id="Lexical"></a>Lexical subroutines</h2>

<p>This new feature is still considered <b>experimental</b>. To enable it:</p>

<pre><code>use 5.018;
no warnings &quot;experimental::lexical_subs&quot;;
use feature &quot;lexical_subs&quot;;</code></pre>

<p>You can now declare subroutines with <code>state sub foo</code>, <code>my sub foo</code>, and <code>our sub foo</code>. (<code>state sub</code> requires that the &quot;state&quot; feature be enabled, unless you write it as <code>CORE::state sub foo</code>.)</p>

<p><code>state sub</code> creates a subroutine visible within the lexical scope in which it is declared. The subroutine is shared between calls to the outer sub.</p>

<p><code>my sub</code> declares a lexical subroutine that is created each time the enclosing block is entered. <code>state sub</code> is generally slightly faster than <code>my sub</code>.</p>

<p><code>our sub</code> declares a lexical alias to the package subroutine of the same name.</p>

<p>For more information, see <a href="perlsub.html#Lexical-Subroutines">&quot;Lexical Subroutines&quot; in perlsub</a>.</p>

<h2 id="Computed-Labels"><a class="permalink" href="perl5180delta.html#Computed-Labels">#</a><a id="Computed"></a>Computed Labels</h2>

<p>The loop controls <code>next</code>, <code>last</code> and <code>redo</code>, and the special <code>dump</code> operator, now allow arbitrary expressions to be used to compute labels at run time. Previously, any argument that was not a constant was treated as the empty string.</p>

<h2 id="More-CORE::-subs"><a class="permalink" href="perl5180delta.html#More-CORE::-subs">#</a><a id="More"></a>More CORE:: subs</h2>

<p>Several more built-in functions have been added as subroutines to the CORE:: namespace - namely, those non-overridable keywords that can be implemented without custom parsers: <code>defined</code>, <code>delete</code>, <code>exists</code>, <code>glob</code>, <code>pos</code>, <code>prototype</code>, <code>scalar</code>, <code>split</code>, <code>study</code>, and <code>undef</code>.</p>

<p>As some of these have prototypes, <code>prototype(&#39;CORE::...&#39;)</code> has been changed to not make a distinction between overridable and non-overridable keywords. This is to make <code>prototype(&#39;CORE::pos&#39;)</code> consistent with <code>prototype(&amp;CORE::pos)</code>.</p>

<h2 id="kill-with-negative-signal-names"><a class="permalink" href="perl5180delta.html#kill-with-negative-signal-names">#</a><a id="kill"></a><code>kill</code> with negative signal names</h2>

<p><code>kill</code> has always allowed a negative signal number, which kills the process group instead of a single process. It has also allowed signal names. But it did not behave consistently, because negative signal names were treated as 0. Now negative signals names like <code>-INT</code> are supported and treated the same way as -2 [perl #112990].</p>

<h1 id="Security"><a class="permalink" href="perl5180delta.html#Security">#</a>Security</h1>

<h2 id="See-also:-hash-overhaul"><a class="permalink" href="perl5180delta.html#See-also:-hash-overhaul">#</a><a id="See"></a>See also: hash overhaul</h2>

<p>Some of the changes in the <a href="perl5180delta.html#Hash-overhaul">hash overhaul</a> were made to enhance security. Please read that section.</p>

<h2 id="Storable-security-warning-in-documentation"><a class="permalink" href="perl5180delta.html#Storable-security-warning-in-documentation">#</a><a id="Storable"></a><code>Storable</code> security warning in documentation</h2>

<p>The documentation for <code>Storable</code> now includes a section which warns readers of the danger of accepting Storable documents from untrusted sources. The short version is that deserializing certain types of data can lead to loading modules and other code execution. This is documented behavior and wanted behavior, but this opens an attack vector for malicious entities.</p>

<h2 id="Locale::Maketext-allowed-code-injection-via-a-malicious-template"><a class="permalink" href="perl5180delta.html#Locale::Maketext-allowed-code-injection-via-a-malicious-template">#</a><a id="Locale"></a><code>Locale::Maketext</code> allowed code injection via a malicious template</h2>

<p>If users could provide a translation string to Locale::Maketext, this could be used to invoke arbitrary Perl subroutines available in the current process.</p>

<p>This has been fixed, but it is still possible to invoke any method provided by <code>Locale::Maketext</code> itself or a subclass that you are using. One of these methods in turn will invoke the Perl core&#39;s <code>sprintf</code> subroutine.</p>

<p>In summary, allowing users to provide translation strings without auditing them is a bad idea.</p>

<p>This vulnerability is documented in CVE-2012-6329.</p>

<h2 id="Avoid-calling-memset-with-a-negative-count"><a class="permalink" href="perl5180delta.html#Avoid-calling-memset-with-a-negative-count">#</a><a id="Avoid"></a>Avoid calling memset with a negative count</h2>

<p>Poorly written perl code that allows an attacker to specify the count to perl&#39;s <code>x</code> string repeat operator can already cause a memory exhaustion denial-of-service attack. A flaw in versions of perl before v5.15.5 can escalate that into a heap buffer overrun; coupled with versions of glibc before 2.16, it possibly allows the execution of arbitrary code.</p>

<p>The flaw addressed to this commit has been assigned identifier CVE-2012-5195 and was researched by Tim Brown.</p>

<h1 id="Incompatible-Changes"><a class="permalink" href="perl5180delta.html#Incompatible-Changes">#</a><a id="Incompatible"></a>Incompatible Changes</h1>

<h2 id="See-also:-hash-overhaul1"><a class="permalink" href="perl5180delta.html#See-also:-hash-overhaul1">#</a><a id="See1"></a>See also: hash overhaul</h2>

<p>Some of the changes in the <a href="perl5180delta.html#Hash-overhaul">hash overhaul</a> are not fully compatible with previous versions of perl. Please read that section.</p>

<h2 id="An-unknown-character-name-in-\N{...}-is-now-a-syntax-error"><a class="permalink" href="perl5180delta.html#An-unknown-character-name-in-%5CN%7B...%7D-is-now-a-syntax-error">#</a><a id="An"></a><a id="An-unknown-character-name-in-N-...-is-now-a-syntax-error"></a>An unknown character name in <code>\N{...}</code> is now a syntax error</h2>

<p>Previously, it warned, and the Unicode REPLACEMENT CHARACTER was substituted. Unicode now recommends that this situation be a syntax error. Also, the previous behavior led to some confusing warnings and behaviors, and since the REPLACEMENT CHARACTER has no use other than as a stand-in for some unknown character, any code that has this problem is buggy.</p>

<h2 id="Formerly-deprecated-characters-in-\N{}-character-name-aliases-are-now-errors."><a class="permalink" href="perl5180delta.html#Formerly-deprecated-characters-in-%5CN%7B%7D-character-name-aliases-are-now-errors.">#</a><a id="Formerly"></a><a id="Formerly-deprecated-characters-in-N-character-name-aliases-are-now-errors"></a>Formerly deprecated characters in <code>\N{}</code> character name aliases are now errors.</h2>

<p>Since v5.12.0, it has been deprecated to use certain characters in user-defined <code>\N{...}</code> character names. These now cause a syntax error. For example, it is now an error to begin a name with a digit, such as in</p>

<pre><code>my $undraftable = &quot;\N{4F}&quot;;    # Syntax error!</code></pre>

<p>or to have commas anywhere in the name. See <a href="charnames.html#CUSTOM-ALIASES">&quot;CUSTOM ALIASES&quot; in charnames</a>.</p>

<h2 id="\N{BELL}-now-refers-to-U+1F514-instead-of-U+0007"><a class="permalink" href="perl5180delta.html#%5CN%7BBELL%7D-now-refers-to-U+1F514-instead-of-U+0007">#</a><a id="N-BELL-now-refers-to-U-1F514-instead-of-U-0007"></a><code>\N{BELL}</code> now refers to U+1F514 instead of U+0007</h2>

<p>Unicode 6.0 reused the name &quot;BELL&quot; for a different code point than it traditionally had meant. Since Perl v5.14, use of this name still referred to U+0007, but would raise a deprecation warning. Now, &quot;BELL&quot; refers to U+1F514, and the name for U+0007 is &quot;ALERT&quot;. All the functions in <a href="charnames.html">charnames</a> have been correspondingly updated.</p>

<h2 id="New-Restrictions-in-Multi-Character-Case-Insensitive-Matching-in-Regular-Expression-Bracketed-Character-Classes"><a class="permalink" href="perl5180delta.html#New-Restrictions-in-Multi-Character-Case-Insensitive-Matching-in-Regular-Expression-Bracketed-Character-Classes">#</a><a id="New3"></a>New Restrictions in Multi-Character Case-Insensitive Matching in Regular Expression Bracketed Character Classes</h2>

<p>Unicode has now withdrawn their previous recommendation for regular expressions to automatically handle cases where a single character can match multiple characters case-insensitively, for example, the letter LATIN SMALL LETTER SHARP S and the sequence <code>ss</code>. This is because it turns out to be impracticable to do this correctly in all circumstances. Because Perl has tried to do this as best it can, it will continue to do so. (We are considering an option to turn it off.) However, a new restriction is being added on such matches when they occur in [bracketed] character classes. People were specifying things such as <code>/[\0-\xff]/i</code>, and being surprised that it matches the two character sequence <code>ss</code> (since LATIN SMALL LETTER SHARP S occurs in this range). This behavior is also inconsistent with using a property instead of a range: <code>\p{Block=Latin1}</code> also includes LATIN SMALL LETTER SHARP S, but <code>/[\p{Block=Latin1}]/i</code> does not match <code>ss</code>. The new rule is that for there to be a multi-character case-insensitive match within a bracketed character class, the character must be explicitly listed, and not as an end point of a range. This more closely obeys the Principle of Least Astonishment. See <a href="perlrecharclass.html#Bracketed-Character-Classes">&quot;Bracketed Character Classes&quot; in perlrecharclass</a>. Note that a bug [perl #89774], now fixed as part of this change, prevented the previous behavior from working fully.</p>

<h2 id="Explicit-rules-for-variable-names-and-identifiers"><a class="permalink" href="perl5180delta.html#Explicit-rules-for-variable-names-and-identifiers">#</a><a id="Explicit"></a>Explicit rules for variable names and identifiers</h2>

<p>Due to an oversight, single character variable names in v5.16 were completely unrestricted. This opened the door to several kinds of insanity. As of v5.18, these now follow the rules of other identifiers, in addition to accepting characters that match the <code>\p{POSIX_Punct}</code> property.</p>

<p>There is no longer any difference in the parsing of identifiers specified by using braces versus without braces. For instance, perl used to allow <code>${foo:bar}</code> (with a single colon) but not <code>$foo:bar</code>. Now that both are handled by a single code path, they are both treated the same way: both are forbidden. Note that this change is about the range of permissible literal identifiers, not other expressions.</p>

<h2 id="Vertical-tabs-are-now-whitespace"><a class="permalink" href="perl5180delta.html#Vertical-tabs-are-now-whitespace">#</a><a id="Vertical"></a>Vertical tabs are now whitespace</h2>

<p>No one could recall why <code>\s</code> didn&#39;t match <code>\cK</code>, the vertical tab. Now it does. Given the extreme rarity of that character, very little breakage is expected. That said, here&#39;s what it means:</p>

<p><code>\s</code> in a regex now matches a vertical tab in all circumstances.</p>

<p>Literal vertical tabs in a regex literal are ignored when the <code>/x</code> modifier is used.</p>

<p>Leading vertical tabs, alone or mixed with other whitespace, are now ignored when interpreting a string as a number. For example:</p>

<pre><code>$dec = &quot; \cK \t 123&quot;;
$hex = &quot; \cK \t 0xF&quot;;

say 0 + $dec;   # was 0 with warning, now 123
say int $dec;   # was 0, now 123
say oct $hex;   # was 0, now  15</code></pre>

<h2 id="/(?{})/-and-/(??{})/-have-been-heavily-reworked"><a class="permalink" href="perl5180delta.html#/(?%7B%7D)/-and-/(??%7B%7D)/-have-been-heavily-reworked">#</a><a id="and-have-been-heavily-reworked"></a><code>/(?{})/</code> and <code>/(??{})/</code> have been heavily reworked</h2>

<p>The implementation of this feature has been almost completely rewritten. Although its main intent is to fix bugs, some behaviors, especially related to the scope of lexical variables, will have changed. This is described more fully in the <a href="perl5180delta.html#Selected-Bug-Fixes">&quot;Selected Bug Fixes&quot;</a> section.</p>

<h2 id="Stricter-parsing-of-substitution-replacement"><a class="permalink" href="perl5180delta.html#Stricter-parsing-of-substitution-replacement">#</a><a id="Stricter"></a>Stricter parsing of substitution replacement</h2>

<p>It is no longer possible to abuse the way the parser parses <code>s///e</code> like this:</p>

<pre><code>%_=(_,&quot;Just another &quot;);
$_=&quot;Perl hacker,\n&quot;;
s//_}-&gt;{_/e;print</code></pre>

<h2 id="given-now-aliases-the-global-$_"><a class="permalink" href="perl5180delta.html#given-now-aliases-the-global-$_">#</a><a id="given"></a><a id="given-now-aliases-the-global-_"></a><code>given</code> now aliases the global <code>$_</code></h2>

<p>Instead of assigning to an implicit lexical <code>$_</code>, <code>given</code> now makes the global <code>$_</code> an alias for its argument, just like <code>foreach</code>. However, it still uses lexical <code>$_</code> if there is lexical <code>$_</code> in scope (again, just like <code>foreach</code>) [perl #114020].</p>

<h2 id="The-smartmatch-family-of-features-are-now-experimental"><a class="permalink" href="perl5180delta.html#The-smartmatch-family-of-features-are-now-experimental">#</a><a id="The"></a>The smartmatch family of features are now experimental</h2>

<p>Smart match, added in v5.10.0 and significantly revised in v5.10.1, has been a regular point of complaint. Although there are a number of ways in which it is useful, it has also proven problematic and confusing for both users and implementors of Perl. There have been a number of proposals on how to best address the problem. It is clear that smartmatch is almost certainly either going to change or go away in the future. Relying on its current behavior is not recommended.</p>

<p>Warnings will now be issued when the parser sees <code>~~</code>, <code>given</code>, or <code>when</code>. To disable these warnings, you can add this line to the appropriate scope:</p>

<pre><code>no if $] &gt;= 5.018, warnings =&gt; &quot;experimental::smartmatch&quot;;</code></pre>

<p>Consider, though, replacing the use of these features, as they may change behavior again before becoming stable.</p>

<h2 id="Lexical-$_-is-now-experimental"><a class="permalink" href="perl5180delta.html#Lexical-$_-is-now-experimental">#</a><a id="Lexical1"></a><a id="Lexical-_-is-now-experimental"></a>Lexical <code>$_</code> is now experimental</h2>

<p>Since it was introduced in Perl v5.10, it has caused much confusion with no obvious solution:</p>

<ul>

<li><p>Various modules (e.g., List::Util) expect callback routines to use the global <code>$_</code>. <code>use List::Util &#39;first&#39;; my $_; first { $_ == 1 } @list</code> does not work as one would expect.</p>

</li>
<li><p>A <code>my $_</code> declaration earlier in the same file can cause confusing closure warnings.</p>

</li>
<li><p>The &quot;_&quot; subroutine prototype character allows called subroutines to access your lexical <code>$_</code>, so it is not really private after all.</p>

</li>
<li><p>Nevertheless, subroutines with a &quot;(@)&quot; prototype and methods cannot access the caller&#39;s lexical <code>$_</code>, unless they are written in XS.</p>

</li>
<li><p>But even XS routines cannot access a lexical <code>$_</code> declared, not in the calling subroutine, but in an outer scope, iff that subroutine happened not to mention <code>$_</code> or use any operators that default to <code>$_</code>.</p>

</li>
</ul>

<p>It is our hope that lexical <code>$_</code> can be rehabilitated, but this may cause changes in its behavior. Please use it with caution until it becomes stable.</p>

<h2 id="readline()-with-$/-=-\N-now-reads-N-characters,-not-N-bytes"><a class="permalink" href="perl5180delta.html#readline()-with-$/-=-%5CN-now-reads-N-characters,-not-N-bytes">#</a><a id="readline"></a><a id="readline-with-N-now-reads-N-characters-not-N-bytes"></a>readline() with <code>$/ = \N</code> now reads N characters, not N bytes</h2>

<p>Previously, when reading from a stream with I/O layers such as <code>encoding</code>, the readline() function, otherwise known as the <code>&lt;&gt;</code> operator, would read <i>N</i> bytes from the top-most layer. [perl #79960]</p>

<p>Now, <i>N</i> characters are read instead.</p>

<p>There is no change in behaviour when reading from streams with no extra layers, since bytes map exactly to characters.</p>

<h2 id="Overridden-glob-is-now-passed-one-argument"><a class="permalink" href="perl5180delta.html#Overridden-glob-is-now-passed-one-argument">#</a><a id="Overridden"></a>Overridden <code>glob</code> is now passed one argument</h2>

<p><code>glob</code> overrides used to be passed a magical undocumented second argument that identified the caller. Nothing on CPAN was using this, and it got in the way of a bug fix, so it was removed. If you really need to identify the caller, see <a href="./Devel::Callsite.html">Devel::Callsite</a> on CPAN.</p>

<h2 id="Here-doc-parsing"><a class="permalink" href="perl5180delta.html#Here-doc-parsing">#</a><a id="Here"></a>Here doc parsing</h2>

<p>The body of a here document inside a quote-like operator now always begins on the line after the &quot;&lt;&lt;foo&quot; marker. Previously, it was documented to begin on the line following the containing quote-like operator, but that was only sometimes the case [perl #114040].</p>

<h2 id="Alphanumeric-operators-must-now-be-separated-from-the-closing-delimiter-of-regular-expressions"><a class="permalink" href="perl5180delta.html#Alphanumeric-operators-must-now-be-separated-from-the-closing-delimiter-of-regular-expressions">#</a><a id="Alphanumeric"></a>Alphanumeric operators must now be separated from the closing delimiter of regular expressions</h2>

<p>You may no longer write something like:</p>

<pre><code class="plaintext">m/a/and 1</code></pre>

<p>Instead you must write</p>

<pre><code class="plaintext">m/a/ and 1</code></pre>

<p>with whitespace separating the operator from the closing delimiter of the regular expression. Not having whitespace has resulted in a deprecation warning since Perl v5.14.0.</p>

<h2 id="qw(...)-can-no-longer-be-used-as-parentheses"><a class="permalink" href="perl5180delta.html#qw(...)-can-no-longer-be-used-as-parentheses">#</a><a id="qw"></a><a id="qw-...-can-no-longer-be-used-as-parentheses"></a>qw(...) can no longer be used as parentheses</h2>

<p><code>qw</code> lists used to fool the parser into thinking they were always surrounded by parentheses. This permitted some surprising constructions such as <code>foreach $x qw(a b c) {...}</code>, which should really be written <code>foreach $x (qw(a b c)) {...}</code>. These would sometimes get the lexer into the wrong state, so they didn&#39;t fully work, and the similar <code>foreach qw(a b c) {...}</code> that one might expect to be permitted never worked at all.</p>

<p>This side effect of <code>qw</code> has now been abolished. It has been deprecated since Perl v5.13.11. It is now necessary to use real parentheses everywhere that the grammar calls for them.</p>

<h2 id="Interaction-of-lexical-and-default-warnings"><a class="permalink" href="perl5180delta.html#Interaction-of-lexical-and-default-warnings">#</a><a id="Interaction"></a>Interaction of lexical and default warnings</h2>

<p>Turning on any lexical warnings used first to disable all default warnings if lexical warnings were not already enabled:</p>

<pre><code>$*; # deprecation warning
use warnings &quot;void&quot;;
$#; # void warning; no deprecation warning</code></pre>

<p>Now, the <code>debugging</code>, <code>deprecated</code>, <code>glob</code>, <code>inplace</code> and <code>malloc</code> warnings categories are left on when turning on lexical warnings (unless they are turned off by <code>no warnings</code>, of course).</p>

<p>This may cause deprecation warnings to occur in code that used to be free of warnings.</p>

<p>Those are the only categories consisting only of default warnings. Default warnings in other categories are still disabled by <code>use warnings &quot;category&quot;</code>, as we do not yet have the infrastructure for controlling individual warnings.</p>

<h2 id="state-sub-and-our-sub"><a class="permalink" href="perl5180delta.html#state-sub-and-our-sub">#</a><a id="state"></a><code>state sub</code> and <code>our sub</code></h2>

<p>Due to an accident of history, <code>state sub</code> and <code>our sub</code> were equivalent to a plain <code>sub</code>, so one could even create an anonymous sub with <code>our sub { ... }</code>. These are now disallowed outside of the &quot;lexical_subs&quot; feature. Under the &quot;lexical_subs&quot; feature they have new meanings described in <a href="perlsub.html#Lexical-Subroutines">&quot;Lexical Subroutines&quot; in perlsub</a>.</p>

<h2 id="Defined-values-stored-in-environment-are-forced-to-byte-strings"><a class="permalink" href="perl5180delta.html#Defined-values-stored-in-environment-are-forced-to-byte-strings">#</a><a id="Defined"></a>Defined values stored in environment are forced to byte strings</h2>

<p>A value stored in an environment variable has always been stringified when inherited by child processes.</p>

<p>In this release, when assigning to <code>%ENV</code>, values are immediately stringified, and converted to be only a byte string.</p>

<p>First, it is forced to be only a string. Then if the string is utf8 and the equivalent of <code>utf8::downgrade()</code> works, that result is used; otherwise, the equivalent of <code>utf8::encode()</code> is used, and a warning is issued about wide characters (<a href="perl5180delta.html#Diagnostics">&quot;Diagnostics&quot;</a>).</p>

<h2 id="require-dies-for-unreadable-files"><a class="permalink" href="perl5180delta.html#require-dies-for-unreadable-files">#</a><a id="require"></a><code>require</code> dies for unreadable files</h2>

<p>When <code>require</code> encounters an unreadable file, it now dies. It used to ignore the file and continue searching the directories in <code>@INC</code> [perl #113422].</p>

<h2 id="gv_fetchmeth_*-and-SUPER"><a class="permalink" href="perl5180delta.html#gv_fetchmeth_*-and-SUPER">#</a><a id="gv_fetchmeth_"></a><a id="gv_fetchmeth_-and-SUPER"></a><code>gv_fetchmeth_*</code> and SUPER</h2>

<p>The various <code>gv_fetchmeth_*</code> XS functions used to treat a package whose named ended with <code>::SUPER</code> specially. A method lookup on the <code>Foo::SUPER</code> package would be treated as a <code>SUPER</code> method lookup on the <code>Foo</code> package. This is no longer the case. To do a <code>SUPER</code> lookup, pass the <code>Foo</code> stash and the <code>GV_SUPER</code> flag.</p>

<h2 id="split&#39;s-first-argument-is-more-consistently-interpreted"><a class="permalink" href="perl5180delta.html#split&#39;s-first-argument-is-more-consistently-interpreted">#</a><a id="split"></a><a id="splits-first-argument-is-more-consistently-interpreted"></a><code>split</code>&#39;s first argument is more consistently interpreted</h2>

<p>After some changes earlier in v5.17, <code>split</code>&#39;s behavior has been simplified: if the PATTERN argument evaluates to a string containing one space, it is treated the way that a <i>literal</i> string containing one space once was.</p>

<h1 id="Deprecations"><a class="permalink" href="perl5180delta.html#Deprecations">#</a>Deprecations</h1>

<h2 id="Module-removals"><a class="permalink" href="perl5180delta.html#Module-removals">#</a><a id="Module"></a>Module removals</h2>

<p>The following modules will be removed from the core distribution in a future release, and will at that time need to be installed from CPAN. Distributions on CPAN which require these modules will need to list them as prerequisites.</p>

<p>The core versions of these modules will now issue <code>&quot;deprecated&quot;</code>-category warnings to alert you to this fact. To silence these deprecation warnings, install the modules in question from CPAN.</p>

<p>Note that these are (with rare exceptions) fine modules that you are encouraged to continue to use. Their disinclusion from core primarily hinges on their necessity to bootstrapping a fully functional, CPAN-capable Perl installation, not usually on concerns over their design.</p>

<dl>

<dt id="encoding"><a class="permalink" href="perl5180delta.html#encoding">#</a><a href="encoding.html">encoding</a></dt>
<dd>

<p>The use of this pragma is now strongly discouraged. It conflates the encoding of source text with the encoding of I/O data, reinterprets escape sequences in source text (a questionable choice), and introduces the UTF-8 bug to all runtime handling of character strings. It is broken as designed and beyond repair.</p>

<p>For using non-ASCII literal characters in source text, please refer to <a href="utf8.html">utf8</a>. For dealing with textual I/O data, please refer to <a href="Encode.html">Encode</a> and <a href="open.html">open</a>.</p>

</dd>
<dt id="Archive::Extract"><a class="permalink" href="perl5180delta.html#Archive::Extract">#</a><a id="Archive"></a><a href="./Archive::Extract.html">Archive::Extract</a></dt>
<dd>

</dd>
<dt id="B::Lint"><a class="permalink" href="perl5180delta.html#B::Lint">#</a><a id="B"></a><a href="./B::Lint.html">B::Lint</a></dt>
<dd>

</dd>
<dt id="B::Lint::Debug"><a class="permalink" href="perl5180delta.html#B::Lint::Debug">#</a><a id="B1"></a><a href="./B::Lint::Debug.html">B::Lint::Debug</a></dt>
<dd>

</dd>
<dt id="CPANPLUS-and-all-included-CPANPLUS::*-modules"><a class="permalink" href="perl5180delta.html#CPANPLUS-and-all-included-CPANPLUS::*-modules">#</a><a id="CPANPLUS"></a><a id="CPANPLUS-and-all-included-CPANPLUS::-modules"></a><a href="CPANPLUS.html">CPANPLUS</a> and all included <code>CPANPLUS::*</code> modules</dt>
<dd>

</dd>
<dt id="Devel::InnerPackage"><a class="permalink" href="perl5180delta.html#Devel::InnerPackage">#</a><a id="Devel"></a><a href="./Devel::InnerPackage.html">Devel::InnerPackage</a></dt>
<dd>

</dd>
<dt id="Log::Message"><a class="permalink" href="perl5180delta.html#Log::Message">#</a><a id="Log"></a><a href="./Log::Message.html">Log::Message</a></dt>
<dd>

</dd>
<dt id="Log::Message::Config"><a class="permalink" href="perl5180delta.html#Log::Message::Config">#</a><a id="Log1"></a><a href="./Log::Message::Config.html">Log::Message::Config</a></dt>
<dd>

</dd>
<dt id="Log::Message::Handlers"><a class="permalink" href="perl5180delta.html#Log::Message::Handlers">#</a><a id="Log2"></a><a href="./Log::Message::Handlers.html">Log::Message::Handlers</a></dt>
<dd>

</dd>
<dt id="Log::Message::Item"><a class="permalink" href="perl5180delta.html#Log::Message::Item">#</a><a id="Log3"></a><a href="./Log::Message::Item.html">Log::Message::Item</a></dt>
<dd>

</dd>
<dt id="Log::Message::Simple"><a class="permalink" href="perl5180delta.html#Log::Message::Simple">#</a><a id="Log4"></a><a href="./Log::Message::Simple.html">Log::Message::Simple</a></dt>
<dd>

</dd>
<dt id="Module::Pluggable"><a class="permalink" href="perl5180delta.html#Module::Pluggable">#</a><a id="Module1"></a><a href="./Module::Pluggable.html">Module::Pluggable</a></dt>
<dd>

</dd>
<dt id="Module::Pluggable::Object"><a class="permalink" href="perl5180delta.html#Module::Pluggable::Object">#</a><a id="Module2"></a><a href="./Module::Pluggable::Object.html">Module::Pluggable::Object</a></dt>
<dd>

</dd>
<dt id="Object::Accessor"><a class="permalink" href="perl5180delta.html#Object::Accessor">#</a><a id="Object"></a><a href="./Object::Accessor.html">Object::Accessor</a></dt>
<dd>

</dd>
<dt id="Pod::LaTeX"><a class="permalink" href="perl5180delta.html#Pod::LaTeX">#</a><a id="Pod"></a><a href="./Pod::LaTeX.html">Pod::LaTeX</a></dt>
<dd>

</dd>
<dt id="Term::UI"><a class="permalink" href="perl5180delta.html#Term::UI">#</a><a id="Term"></a><a href="./Term::UI.html">Term::UI</a></dt>
<dd>

</dd>
<dt id="Term::UI::History"><a class="permalink" href="perl5180delta.html#Term::UI::History">#</a><a id="Term1"></a><a href="./Term::UI::History.html">Term::UI::History</a></dt>
<dd>

</dd>
</dl>

<h2 id="Deprecated-Utilities"><a class="permalink" href="perl5180delta.html#Deprecated-Utilities">#</a><a id="Deprecated"></a>Deprecated Utilities</h2>

<p>The following utilities will be removed from the core distribution in a future release as their associated modules have been deprecated. They will remain available with the applicable CPAN distribution.</p>

<dl>

<dt id="cpanp"><a class="permalink" href="perl5180delta.html#cpanp">#</a><a href="cpanp.html">cpanp</a></dt>
<dd>

</dd>
<dt id="cpanp-run-perl"><a class="permalink" href="perl5180delta.html#cpanp-run-perl">#</a><a id="cpanp1"></a><code>cpanp-run-perl</code></dt>
<dd>

</dd>
<dt id="cpan2dist"><a class="permalink" href="perl5180delta.html#cpan2dist">#</a><a href="cpan2dist.html">cpan2dist</a></dt>
<dd>

<p>These items are part of the <code>CPANPLUS</code> distribution.</p>

</dd>
<dt id="pod2latex"><a class="permalink" href="perl5180delta.html#pod2latex">#</a><a href="pod2latex.html">pod2latex</a></dt>
<dd>

<p>This item is part of the <code>Pod::LaTeX</code> distribution.</p>

</dd>
</dl>

<h2 id="PL_sv_objcount"><a class="permalink" href="perl5180delta.html#PL_sv_objcount">#</a>PL_sv_objcount</h2>

<p>This interpreter-global variable used to track the total number of Perl objects in the interpreter. It is no longer maintained and will be removed altogether in Perl v5.20.</p>

<h2 id="Five-additional-characters-should-be-escaped-in-patterns-with-/x"><a class="permalink" href="perl5180delta.html#Five-additional-characters-should-be-escaped-in-patterns-with-/x">#</a><a id="Five"></a><a id="Five-additional-characters-should-be-escaped-in-patterns-with-x"></a>Five additional characters should be escaped in patterns with <code>/x</code></h2>

<p>When a regular expression pattern is compiled with <code>/x</code>, Perl treats 6 characters as white space to ignore, such as SPACE and TAB. However, Unicode recommends 11 characters be treated thusly. We will conform with this in a future Perl version. In the meantime, use of any of the missing characters will raise a deprecation warning, unless turned off. The five characters are:</p>

<pre><code class="plaintext">U+0085 NEXT LINE
U+200E LEFT-TO-RIGHT MARK
U+200F RIGHT-TO-LEFT MARK
U+2028 LINE SEPARATOR
U+2029 PARAGRAPH SEPARATOR</code></pre>

<h2 id="User-defined-charnames-with-surprising-whitespace"><a class="permalink" href="perl5180delta.html#User-defined-charnames-with-surprising-whitespace">#</a><a id="User"></a>User-defined charnames with surprising whitespace</h2>

<p>A user-defined character name with trailing or multiple spaces in a row is likely a typo. This now generates a warning when defined, on the assumption that uses of it will be unlikely to include the excess whitespace.</p>

<h2 id="Various-XS-callable-functions-are-now-deprecated"><a class="permalink" href="perl5180delta.html#Various-XS-callable-functions-are-now-deprecated">#</a><a id="Various"></a>Various XS-callable functions are now deprecated</h2>

<p>All the functions used to classify characters will be removed from a future version of Perl, and should not be used. With participating C compilers (e.g., gcc), compiling any file that uses any of these will generate a warning. These were not intended for public use; there are equivalent, faster, macros for most of them.</p>

<p>See <a href="perlapi.html#Character-classes">&quot;Character classes&quot; in perlapi</a>. The complete list is:</p>

<p><code>is_uni_alnum</code>, <code>is_uni_alnumc</code>, <code>is_uni_alnumc_lc</code>, <code>is_uni_alnum_lc</code>, <code>is_uni_alpha</code>, <code>is_uni_alpha_lc</code>, <code>is_uni_ascii</code>, <code>is_uni_ascii_lc</code>, <code>is_uni_blank</code>, <code>is_uni_blank_lc</code>, <code>is_uni_cntrl</code>, <code>is_uni_cntrl_lc</code>, <code>is_uni_digit</code>, <code>is_uni_digit_lc</code>, <code>is_uni_graph</code>, <code>is_uni_graph_lc</code>, <code>is_uni_idfirst</code>, <code>is_uni_idfirst_lc</code>, <code>is_uni_lower</code>, <code>is_uni_lower_lc</code>, <code>is_uni_print</code>, <code>is_uni_print_lc</code>, <code>is_uni_punct</code>, <code>is_uni_punct_lc</code>, <code>is_uni_space</code>, <code>is_uni_space_lc</code>, <code>is_uni_upper</code>, <code>is_uni_upper_lc</code>, <code>is_uni_xdigit</code>, <code>is_uni_xdigit_lc</code>, <code>is_utf8_alnum</code>, <code>is_utf8_alnumc</code>, <code>is_utf8_alpha</code>, <code>is_utf8_ascii</code>, <code>is_utf8_blank</code>, <code>is_utf8_char</code>, <code>is_utf8_cntrl</code>, <code>is_utf8_digit</code>, <code>is_utf8_graph</code>, <code>is_utf8_idcont</code>, <code>is_utf8_idfirst</code>, <code>is_utf8_lower</code>, <code>is_utf8_mark</code>, <code>is_utf8_perl_space</code>, <code>is_utf8_perl_word</code>, <code>is_utf8_posix_digit</code>, <code>is_utf8_print</code>, <code>is_utf8_punct</code>, <code>is_utf8_space</code>, <code>is_utf8_upper</code>, <code>is_utf8_xdigit</code>, <code>is_utf8_xidcont</code>, <code>is_utf8_xidfirst</code>.</p>

<p>In addition these three functions that have never worked properly are deprecated: <code>to_uni_lower_lc</code>, <code>to_uni_title_lc</code>, and <code>to_uni_upper_lc</code>.</p>

<h2 id="Certain-rare-uses-of-backslashes-within-regexes-are-now-deprecated"><a class="permalink" href="perl5180delta.html#Certain-rare-uses-of-backslashes-within-regexes-are-now-deprecated">#</a><a id="Certain"></a>Certain rare uses of backslashes within regexes are now deprecated</h2>

<p>There are three pairs of characters that Perl recognizes as metacharacters in regular expression patterns: <code>{}</code>, <code>[]</code>, and <code>()</code>. These can be used as well to delimit patterns, as in:</p>

<pre><code class="plaintext">m{foo}
s(foo)(bar)</code></pre>

<p>Since they are metacharacters, they have special meaning to regular expression patterns, and it turns out that you can&#39;t turn off that special meaning by the normal means of preceding them with a backslash, if you use them, paired, within a pattern delimited by them. For example, in</p>

<pre><code class="plaintext">m{foo\{1,3\}}</code></pre>

<p>the backslashes do not change the behavior, and this matches <span style="white-space: nowrap;"><code>&quot;f o&quot;</code></span> followed by one to three more occurrences of <code>&quot;o&quot;</code>.</p>

<p>Usages like this, where they are interpreted as metacharacters, are exceedingly rare; we think there are none, for example, in all of CPAN. Hence, this deprecation should affect very little code. It does give notice, however, that any such code needs to change, which will in turn allow us to change the behavior in future Perl versions so that the backslashes do have an effect, and without fear that we are silently breaking any existing code.</p>

<h2 id="Splitting-the-tokens-(?-and-(*-in-regular-expressions"><a class="permalink" href="perl5180delta.html#Splitting-the-tokens-(?-and-(*-in-regular-expressions">#</a><a id="Splitting"></a><a id="Splitting-the-tokens-and-in-regular-expressions"></a>Splitting the tokens <code>(?</code> and <code>(*</code> in regular expressions</h2>

<p>A deprecation warning is now raised if the <code>(</code> and <code>?</code> are separated by white space or comments in <code>(?...)</code> regular expression constructs. Similarly, if the <code>(</code> and <code>*</code> are separated in <code>(*VERB...)</code> constructs.</p>

<h2 id="Pre-PerlIO-IO-implementations"><a class="permalink" href="perl5180delta.html#Pre-PerlIO-IO-implementations">#</a><a id="Pre"></a>Pre-PerlIO IO implementations</h2>

<p>In theory, you can currently build perl without PerlIO. Instead, you&#39;d use a wrapper around stdio or sfio. In practice, this isn&#39;t very useful. It&#39;s not well tested, and without any support for IO layers or (thus) Unicode, it&#39;s not much of a perl. Building without PerlIO will most likely be removed in the next version of perl.</p>

<p>PerlIO supports a <code>stdio</code> layer if stdio use is desired. Similarly a sfio layer could be produced in the future, if needed.</p>

<h1 id="Future-Deprecations"><a class="permalink" href="perl5180delta.html#Future-Deprecations">#</a><a id="Future"></a>Future Deprecations</h1>

<ul>

<li><p>Platforms without support infrastructure</p>

<p>Both Windows CE and z/OS have been historically under-maintained, and are currently neither successfully building nor regularly being smoke tested. Efforts are underway to change this situation, but it should not be taken for granted that the platforms are safe and supported. If they do not become buildable and regularly smoked, support for them may be actively removed in future releases. If you have an interest in these platforms and you can lend your time, expertise, or hardware to help support these platforms, please let the perl development effort know by emailing <code>perl5-porters@perl.org</code>.</p>

<p>Some platforms that appear otherwise entirely dead are also on the short list for removal between now and v5.20.0:</p>

<dl>

<dt id="DG/UX"><a class="permalink" href="perl5180delta.html#DG/UX">#</a><a id="DG"></a><a id="DG-UX"></a>DG/UX</dt>
<dd>

</dd>
<dt id="NeXT"><a class="permalink" href="perl5180delta.html#NeXT">#</a>NeXT</dt>
<dd>

</dd>
</dl>

<p>We also think it likely that current versions of Perl will no longer build AmigaOS, DJGPP, NetWare (natively), OS/2 and Plan 9. If you are using Perl on such a platform and have an interest in ensuring Perl&#39;s future on them, please contact us.</p>

<p>We believe that Perl has long been unable to build on mixed endian architectures (such as PDP-11s), and intend to remove any remaining support code. Similarly, code supporting the long unmaintained GNU dld will be removed soon if no-one makes themselves known as an active user.</p>

</li>
<li><p>Swapping of $&lt; and $&gt;</p>

<p>Perl has supported the idiom of swapping $&lt; and $&gt; (and likewise $( and $)) to temporarily drop permissions since 5.0, like this:</p>

<pre><code>($&lt;, $&gt;) = ($&gt;, $&lt;);</code></pre>

<p>However, this idiom modifies the real user/group id, which can have undesirable side-effects, is no longer useful on any platform perl supports and complicates the implementation of these variables and list assignment in general.</p>

<p>As an alternative, assignment only to <code>$&gt;</code> is recommended:</p>

<pre><code>local $&gt; = $&lt;;</code></pre>

<p>See also: <a href="http://www.cs.berkeley.edu/~daw/papers/setuid-usenix02.pdf">Setuid Demystified</a>.</p>

</li>
<li><p><code>microperl</code>, long broken and of unclear present purpose, will be removed.</p>

</li>
<li><p>Revamping <code>&quot;\Q&quot;</code> semantics in double-quotish strings when combined with other escapes.</p>

<p>There are several bugs and inconsistencies involving combinations of <code>\Q</code> and escapes like <code>\x</code>, <code>\L</code>, etc., within a <code>\Q...\E</code> pair. These need to be fixed, and doing so will necessarily change current behavior. The changes have not yet been settled.</p>

</li>
<li><p>Use of <code>$x</code>, where <code>x</code> stands for any actual (non-printing) C0 control character will be disallowed in a future Perl version. Use <code>${x}</code> instead (where again <code>x</code> stands for a control character), or better, <code>$^A</code> , where <code>^</code> is a caret (CIRCUMFLEX ACCENT), and <code>A</code> stands for any of the characters listed at the end of <a href="perlebcdic.html#OPERATOR-DIFFERENCES">&quot;OPERATOR DIFFERENCES&quot; in perlebcdic</a>.</p>

</li>
</ul>

<h1 id="Performance-Enhancements"><a class="permalink" href="perl5180delta.html#Performance-Enhancements">#</a><a id="Performance"></a>Performance Enhancements</h1>

<ul>

<li><p>Lists of lexical variable declarations (<code>my($x, $y)</code>) are now optimised down to a single op and are hence faster than before.</p>

</li>
<li><p>A new C preprocessor define <code>NO_TAINT_SUPPORT</code> was added that, if set, disables Perl&#39;s taint support altogether. Using the -T or -t command line flags will cause a fatal error. Beware that both core tests as well as many a CPAN distribution&#39;s tests will fail with this change. On the upside, it provides a small performance benefit due to reduced branching.</p>

<p><b>Do not enable this unless you know exactly what you are getting yourself into.</b></p>

</li>
<li><p><code>pack</code> with constant arguments is now constant folded in most cases [perl #113470].</p>

</li>
<li><p>Speed up in regular expression matching against Unicode properties. The largest gain is for <code>\X</code>, the Unicode &quot;extended grapheme cluster.&quot; The gain for it is about 35% - 40%. Bracketed character classes, e.g., <code>[0-9\x{100}]</code> containing code points above 255 are also now faster.</p>

</li>
<li><p>On platforms supporting it, several former macros are now implemented as static inline functions. This should speed things up slightly on non-GCC platforms.</p>

</li>
<li><p>The optimisation of hashes in boolean context has been extended to affect <code>scalar(%hash)</code>, <code>%hash ? ... : ...</code>, and <code>sub { %hash || ... }</code>.</p>

</li>
<li><p>Filetest operators manage the stack in a fractionally more efficient manner.</p>

</li>
<li><p>Globs used in a numeric context are now numified directly in most cases, rather than being numified via stringification.</p>

</li>
<li><p>The <code>x</code> repetition operator is now folded to a single constant at compile time if called in scalar context with constant operands and no parentheses around the left operand.</p>

</li>
</ul>

<h1 id="Modules-and-Pragmata"><a class="permalink" href="perl5180delta.html#Modules-and-Pragmata">#</a><a id="Modules"></a>Modules and Pragmata</h1>

<h2 id="New-Modules-and-Pragmata"><a class="permalink" href="perl5180delta.html#New-Modules-and-Pragmata">#</a><a id="New4"></a>New Modules and Pragmata</h2>

<ul>

<li><p><a href="./Config::Perl::V.html">Config::Perl::V</a> version 0.16 has been added as a dual-lifed module. It provides structured data retrieval of <code>perl -V</code> output including information only known to the <code>perl</code> binary and not available via <a href="Config.html">Config</a>.</p>

</li>
</ul>

<h2 id="Updated-Modules-and-Pragmata"><a class="permalink" href="perl5180delta.html#Updated-Modules-and-Pragmata">#</a><a id="Updated"></a>Updated Modules and Pragmata</h2>

<p>For a complete list of updates, run:</p>

<pre><code class="plaintext">$ corelist --diff 5.16.0 5.18.0</code></pre>

<p>You can substitute your favorite version in place of <code>5.16.0</code>, too.</p>

<ul>

<li><p><a href="./Archive::Extract.html">Archive::Extract</a> has been upgraded to 0.68.</p>

<p>Work around an edge case on Linux with Busybox&#39;s unzip.</p>

</li>
<li><p><a href="./Archive::Tar.html">Archive::Tar</a> has been upgraded to 1.90.</p>

<p>ptar now supports the -T option as well as dashless options [rt.cpan.org #75473], [rt.cpan.org #75475].</p>

<p>Auto-encode filenames marked as UTF-8 [rt.cpan.org #75474].</p>

<p>Don&#39;t use <code>tell</code> on <a href="./IO::Zlib.html">IO::Zlib</a> handles [rt.cpan.org #64339].</p>

<p>Don&#39;t try to <code>chown</code> on symlinks.</p>

</li>
<li><p><a href="autodie.html">autodie</a> has been upgraded to 2.13.</p>

<p><code>autodie</code> now plays nicely with the &#39;open&#39; pragma.</p>

</li>
<li><p><a href="B.html">B</a> has been upgraded to 1.42.</p>

<p>The <code>stashoff</code> method of COPs has been added. This provides access to an internal field added in perl 5.16 under threaded builds [perl #113034].</p>

<p><code>B::COP::stashpv</code> now supports UTF-8 package names and embedded NULs.</p>

<p>All <code>CVf_*</code> and <code>GVf_*</code> and more SV-related flag values are now provided as constants in the <code>B::</code> namespace and available for export. The default export list has not changed.</p>

<p>This makes the module work with the new pad API.</p>

</li>
<li><p><a href="./B::Concise.html">B::Concise</a> has been upgraded to 0.95.</p>

<p>The <code>-nobanner</code> option has been fixed, and <code>format</code>s can now be dumped. When passed a sub name to dump, it will check also to see whether it is the name of a format. If a sub and a format share the same name, it will dump both.</p>

<p>This adds support for the new <code>OpMAYBE_TRUEBOOL</code> and <code>OPpTRUEBOOL</code> flags.</p>

</li>
<li><p><a href="./B::Debug.html">B::Debug</a> has been upgraded to 1.18.</p>

<p>This adds support (experimentally) for <code>B::PADLIST</code>, which was added in Perl 5.17.4.</p>

</li>
<li><p><a href="./B::Deparse.html">B::Deparse</a> has been upgraded to 1.20.</p>

<p>Avoid warning when run under <code>perl -w</code>.</p>

<p>It now deparses loop controls with the correct precedence, and multiple statements in a <code>format</code> line are also now deparsed correctly.</p>

<p>This release suppresses trailing semicolons in formats.</p>

<p>This release adds stub deparsing for lexical subroutines.</p>

<p>It no longer dies when deparsing <code>sort</code> without arguments. It now correctly omits the comma for <code>system $prog @args</code> and <code>exec $prog @args</code>.</p>

</li>
<li><p><a href="bignum.html">bignum</a>, <a href="bigint.html">bigint</a> and <a href="bigrat.html">bigrat</a> have been upgraded to 0.33.</p>

<p>The overrides for <code>hex</code> and <code>oct</code> have been rewritten, eliminating several problems, and making one incompatible change:</p>

<ul>

<li><p>Formerly, whichever of <code>use bigint</code> or <code>use bigrat</code> was compiled later would take precedence over the other, causing <code>hex</code> and <code>oct</code> not to respect the other pragma when in scope.</p>

</li>
<li><p>Using any of these three pragmata would cause <code>hex</code> and <code>oct</code> anywhere else in the program to evaluate their arguments in list context and prevent them from inferring $_ when called without arguments.</p>

</li>
<li><p>Using any of these three pragmata would make <code>oct(&quot;1234&quot;)</code> return 1234 (for any number not beginning with 0) anywhere in the program. Now &quot;1234&quot; is translated from octal to decimal, whether within the pragma&#39;s scope or not.</p>

</li>
<li><p>The global overrides that facilitate lexical use of <code>hex</code> and <code>oct</code> now respect any existing overrides that were in place before the new overrides were installed, falling back to them outside of the scope of <code>use bignum</code>.</p>

</li>
<li><p><code>use bignum &quot;hex&quot;</code>, <code>use bignum &quot;oct&quot;</code> and similar invocations for bigint and bigrat now export a <code>hex</code> or <code>oct</code> function, instead of providing a global override.</p>

</li>
</ul>

</li>
<li><p><a href="Carp.html">Carp</a> has been upgraded to 1.29.</p>

<p>Carp is no longer confused when <code>caller</code> returns undef for a package that has been deleted.</p>

<p>The <code>longmess()</code> and <code>shortmess()</code> functions are now documented.</p>

</li>
<li><p><a href="CGI.html">CGI</a> has been upgraded to 3.63.</p>

<p>Unrecognized HTML escape sequences are now handled better, problematic trailing newlines are no longer inserted after &lt;form&gt; tags by <code>startform()</code> or <code>start_form()</code>, and bogus &quot;Insecure Dependency&quot; warnings appearing with some versions of perl are now worked around.</p>

</li>
<li><p><a href="./Class::Struct.html">Class::Struct</a> has been upgraded to 0.64.</p>

<p>The constructor now respects overridden accessor methods [perl #29230].</p>

</li>
<li><p><a href="./Compress::Raw::Bzip2.html">Compress::Raw::Bzip2</a> has been upgraded to 2.060.</p>

<p>The misuse of Perl&#39;s &quot;magic&quot; API has been fixed.</p>

</li>
<li><p><a href="./Compress::Raw::Zlib.html">Compress::Raw::Zlib</a> has been upgraded to 2.060.</p>

<p>Upgrade bundled zlib to version 1.2.7.</p>

<p>Fix build failures on Irix, Solaris, and Win32, and also when building as C++ [rt.cpan.org #69985], [rt.cpan.org #77030], [rt.cpan.org #75222].</p>

<p>The misuse of Perl&#39;s &quot;magic&quot; API has been fixed.</p>

<p><code>compress()</code>, <code>uncompress()</code>, <code>memGzip()</code> and <code>memGunzip()</code> have been speeded up by making parameter validation more efficient.</p>

</li>
<li><p><a href="./CPAN::Meta::Requirements.html">CPAN::Meta::Requirements</a> has been upgraded to 2.122.</p>

<p>Treat undef requirements to <code>from_string_hash</code> as 0 (with a warning).</p>

<p>Added <code>requirements_for_module</code> method.</p>

</li>
<li><p><a href="CPANPLUS.html">CPANPLUS</a> has been upgraded to 0.9135.</p>

<p>Allow adding <i>blib/script</i> to PATH.</p>

<p>Save the history between invocations of the shell.</p>

<p>Handle multiple <code>makemakerargs</code> and <code>makeflags</code> arguments better.</p>

<p>This resolves issues with the SQLite source engine.</p>

</li>
<li><p><a href="./Data::Dumper.html">Data::Dumper</a> has been upgraded to 2.145.</p>

<p>It has been optimized to only build a seen-scalar hash as necessary, thereby speeding up serialization drastically.</p>

<p>Additional tests were added in order to improve statement, branch, condition and subroutine coverage. On the basis of the coverage analysis, some of the internals of Dumper.pm were refactored. Almost all methods are now documented.</p>

</li>
<li><p><a href="DB_File.html">DB_File</a> has been upgraded to 1.827.</p>

<p>The main Perl module no longer uses the <code>&quot;@_&quot;</code> construct.</p>

</li>
<li><p><a href="./Devel::Peek.html">Devel::Peek</a> has been upgraded to 1.11.</p>

<p>This fixes compilation with C++ compilers and makes the module work with the new pad API.</p>

</li>
<li><p><a href="./Digest::MD5.html">Digest::MD5</a> has been upgraded to 2.52.</p>

<p>Fix <code>Digest::Perl::MD5</code> OO fallback [rt.cpan.org #66634].</p>

</li>
<li><p><a href="./Digest::SHA.html">Digest::SHA</a> has been upgraded to 5.84.</p>

<p>This fixes a double-free bug, which might have caused vulnerabilities in some cases.</p>

</li>
<li><p><a href="DynaLoader.html">DynaLoader</a> has been upgraded to 1.18.</p>

<p>This is due to a minor code change in the XS for the VMS implementation.</p>

<p>This fixes warnings about using <code>CODE</code> sections without an <code>OUTPUT</code> section.</p>

</li>
<li><p><a href="Encode.html">Encode</a> has been upgraded to 2.49.</p>

<p>The Mac alias x-mac-ce has been added, and various bugs have been fixed in Encode::Unicode, Encode::UTF7 and Encode::GSM0338.</p>

</li>
<li><p><a href="Env.html">Env</a> has been upgraded to 1.04.</p>

<p>Its SPLICE implementation no longer misbehaves in list context.</p>

</li>
<li><p><a href="./ExtUtils::CBuilder.html">ExtUtils::CBuilder</a> has been upgraded to 0.280210.</p>

<p>Manifest files are now correctly embedded for those versions of VC++ which make use of them. [perl #111782, #111798].</p>

<p>A list of symbols to export can now be passed to <code>link()</code> when on Windows, as on other OSes [perl #115100].</p>

</li>
<li><p><a href="./ExtUtils::ParseXS.html">ExtUtils::ParseXS</a> has been upgraded to 3.18.</p>

<p>The generated C code now avoids unnecessarily incrementing <code>PL_amagic_generation</code> on Perl versions where it&#39;s done automatically (or on current Perl where the variable no longer exists).</p>

<p>This avoids a bogus warning for initialised XSUB non-parameters [perl #112776].</p>

</li>
<li><p><a href="./File::Copy.html">File::Copy</a> has been upgraded to 2.26.</p>

<p><code>copy()</code> no longer zeros files when copying into the same directory, and also now fails (as it has long been documented to do) when attempting to copy a file over itself.</p>

</li>
<li><p><a href="./File::DosGlob.html">File::DosGlob</a> has been upgraded to 1.10.</p>

<p>The internal cache of file names that it keeps for each caller is now freed when that caller is freed. This means <code>use File::DosGlob &#39;glob&#39;; eval &#39;scalar &lt;*&gt;&#39;</code> no longer leaks memory.</p>

</li>
<li><p><a href="./File::Fetch.html">File::Fetch</a> has been upgraded to 0.38.</p>

<p>Added the &#39;file_default&#39; option for URLs that do not have a file component.</p>

<p>Use <code>File::HomeDir</code> when available, and provide <code>PERL5_CPANPLUS_HOME</code> to override the autodetection.</p>

<p>Always re-fetch <i>CHECKSUMS</i> if <code>fetchdir</code> is set.</p>

</li>
<li><p><a href="./File::Find.html">File::Find</a> has been upgraded to 1.23.</p>

<p>This fixes inconsistent unixy path handling on VMS.</p>

<p>Individual files may now appear in list of directories to be searched [perl #59750].</p>

</li>
<li><p><a href="./File::Glob.html">File::Glob</a> has been upgraded to 1.20.</p>

<p>File::Glob has had exactly the same fix as File::DosGlob. Since it is what Perl&#39;s own <code>glob</code> operator itself uses (except on VMS), this means <code>eval &#39;scalar &lt;*&gt;&#39;</code> no longer leaks.</p>

<p>A space-separated list of patterns return long lists of results no longer results in memory corruption or crashes. This bug was introduced in Perl 5.16.0. [perl #114984]</p>

</li>
<li><p><a href="./File::Spec::Unix.html">File::Spec::Unix</a> has been upgraded to 3.40.</p>

<p><code>abs2rel</code> could produce incorrect results when given two relative paths or the root directory twice [perl #111510].</p>

</li>
<li><p><a href="./File::stat.html">File::stat</a> has been upgraded to 1.07.</p>

<p><code>File::stat</code> ignores the <a href="filetest.html">filetest</a> pragma, and warns when used in combination therewith. But it was not warning for <code>-r</code>. This has been fixed [perl #111640].</p>

<p><code>-p</code> now works, and does not return false for pipes [perl #111638].</p>

<p>Previously <code>File::stat</code>&#39;s overloaded <code>-x</code> and <code>-X</code> operators did not give the correct results for directories or executable files when running as root. They had been treating executable permissions for root just like for any other user, performing group membership tests <i>etc</i> for files not owned by root. They now follow the correct Unix behaviour - for a directory they are always true, and for a file if any of the three execute permission bits are set then they report that root can execute the file. Perl&#39;s builtin <code>-x</code> and <code>-X</code> operators have always been correct.</p>

</li>
<li><p><a href="./File::Temp.html">File::Temp</a> has been upgraded to 0.23</p>

<p>Fixes various bugs involving directory removal. Defers unlinking tempfiles if the initial unlink fails, which fixes problems on NFS.</p>

</li>
<li><p><a href="GDBM_File.html">GDBM_File</a> has been upgraded to 1.15.</p>

<p>The undocumented optional fifth parameter to <code>TIEHASH</code> has been removed. This was intended to provide control of the callback used by <code>gdbm*</code> functions in case of fatal errors (such as filesystem problems), but did not work (and could never have worked). No code on CPAN even attempted to use it. The callback is now always the previous default, <code>croak</code>. Problems on some platforms with how the <code>C</code> <code>croak</code> function is called have also been resolved.</p>

</li>
<li><p><a href="./Hash::Util.html">Hash::Util</a> has been upgraded to 0.15.</p>

<p><code>hash_unlocked</code> and <code>hashref_unlocked</code> now returns true if the hash is unlocked, instead of always returning false [perl #112126].</p>

<p><code>hash_unlocked</code>, <code>hashref_unlocked</code>, <code>lock_hash_recurse</code> and <code>unlock_hash_recurse</code> are now exportable [perl #112126].</p>

<p>Two new functions, <code>hash_locked</code> and <code>hashref_locked</code>, have been added. Oddly enough, these two functions were already exported, even though they did not exist [perl #112126].</p>

</li>
<li><p><a href="./HTTP::Tiny.html">HTTP::Tiny</a> has been upgraded to 0.025.</p>

<p>Add SSL verification features [github #6], [github #9].</p>

<p>Include the final URL in the response hashref.</p>

<p>Add <code>local_address</code> option.</p>

<p>This improves SSL support.</p>

</li>
<li><p><a href="IO.html">IO</a> has been upgraded to 1.28.</p>

<p><code>sync()</code> can now be called on read-only file handles [perl #64772].</p>

<p><a href="./IO::Socket.html">IO::Socket</a> tries harder to cache or otherwise fetch socket information.</p>

</li>
<li><p><a href="./IPC::Cmd.html">IPC::Cmd</a> has been upgraded to 0.80.</p>

<p>Use <code>POSIX::_exit</code> instead of <code>exit</code> in <code>run_forked</code> [rt.cpan.org #76901].</p>

</li>
<li><p><a href="./IPC::Open3.html">IPC::Open3</a> has been upgraded to 1.13.</p>

<p>The <code>open3()</code> function no longer uses <code>POSIX::close()</code> to close file descriptors since that breaks the ref-counting of file descriptors done by PerlIO in cases where the file descriptors are shared by PerlIO streams, leading to attempts to close the file descriptors a second time when any such PerlIO streams are closed later on.</p>

</li>
<li><p><a href="./Locale::Codes.html">Locale::Codes</a> has been upgraded to 3.25.</p>

<p>It includes some new codes.</p>

</li>
<li><p><a href="Memoize.html">Memoize</a> has been upgraded to 1.03.</p>

<p>Fix the <code>MERGE</code> cache option.</p>

</li>
<li><p><a href="./Module::Build.html">Module::Build</a> has been upgraded to 0.4003.</p>

<p>Fixed bug where modules without <code>$VERSION</code> might have a version of &#39;0&#39; listed in &#39;provides&#39; metadata, which will be rejected by PAUSE.</p>

<p>Fixed bug in PodParser to allow numerals in module names.</p>

<p>Fixed bug where giving arguments twice led to them becoming arrays, resulting in install paths like <i>ARRAY(0xdeadbeef)/lib/Foo.pm</i>.</p>

<p>A minor bug fix allows markup to be used around the leading &quot;Name&quot; in a POD &quot;abstract&quot; line, and some documentation improvements have been made.</p>

</li>
<li><p><a href="./Module::CoreList.html">Module::CoreList</a> has been upgraded to 2.90</p>

<p>Version information is now stored as a delta, which greatly reduces the size of the <i>CoreList.pm</i> file.</p>

<p>This restores compatibility with older versions of perl and cleans up the corelist data for various modules.</p>

</li>
<li><p><a href="./Module::Load::Conditional.html">Module::Load::Conditional</a> has been upgraded to 0.54.</p>

<p>Fix use of <code>requires</code> on perls installed to a path with spaces.</p>

<p>Various enhancements include the new use of Module::Metadata.</p>

</li>
<li><p><a href="./Module::Metadata.html">Module::Metadata</a> has been upgraded to 1.000011.</p>

<p>The creation of a Module::Metadata object for a typical module file has been sped up by about 40%, and some spurious warnings about <code>$VERSION</code>s have been suppressed.</p>

</li>
<li><p><a href="./Module::Pluggable.html">Module::Pluggable</a> has been upgraded to 4.7.</p>

<p>Amongst other changes, triggers are now allowed on events, which gives a powerful way to modify behaviour.</p>

</li>
<li><p><a href="./Net::Ping.html">Net::Ping</a> has been upgraded to 2.41.</p>

<p>This fixes some test failures on Windows.</p>

</li>
<li><p><a href="Opcode.html">Opcode</a> has been upgraded to 1.25.</p>

<p>Reflect the removal of the boolkeys opcode and the addition of the clonecv, introcv and padcv opcodes.</p>

</li>
<li><p><a href="overload.html">overload</a> has been upgraded to 1.22.</p>

<p><code>no overload</code> now warns for invalid arguments, just like <code>use overload</code>.</p>

</li>
<li><p><a href="./PerlIO::encoding.html">PerlIO::encoding</a> has been upgraded to 0.16.</p>

<p>This is the module implementing the &quot;:encoding(...)&quot; I/O layer. It no longer corrupts memory or crashes when the encoding back-end reallocates the buffer or gives it a typeglob or shared hash key scalar.</p>

</li>
<li><p><a href="./PerlIO::scalar.html">PerlIO::scalar</a> has been upgraded to 0.16.</p>

<p>The buffer scalar supplied may now only contain code points 0xFF or lower. [perl #109828]</p>

</li>
<li><p><a href="./Perl::OSType.html">Perl::OSType</a> has been upgraded to 1.003.</p>

<p>This fixes a bug detecting the VOS operating system.</p>

</li>
<li><p><a href="./Pod::Html.html">Pod::Html</a> has been upgraded to 1.18.</p>

<p>The option <code>--libpods</code> has been reinstated. It is deprecated, and its use does nothing other than issue a warning that it is no longer supported.</p>

<p>Since the HTML files generated by pod2html claim to have a UTF-8 charset, actually write the files out using UTF-8 [perl #111446].</p>

</li>
<li><p><a href="./Pod::Simple.html">Pod::Simple</a> has been upgraded to 3.28.</p>

<p>Numerous improvements have been made, mostly to Pod::Simple::XHTML, which also has a compatibility change: the <code>codes_in_verbatim</code> option is now disabled by default. See <i>cpan/Pod-Simple/ChangeLog</i> for the full details.</p>

</li>
<li><p><a href="re.html">re</a> has been upgraded to 0.23</p>

<p>Single character [class]es like <code>/[s]/</code> or <code>/[s]/i</code> are now optimized as if they did not have the brackets, i.e. <code>/s/</code> or <code>/s/i</code>.</p>

<p>See note about <code>op_comp</code> in the <a href="perl5180delta.html#Internal-Changes">&quot;Internal Changes&quot;</a> section below.</p>

</li>
<li><p><a href="Safe.html">Safe</a> has been upgraded to 2.35.</p>

<p>Fix interactions with <code>Devel::Cover</code>.</p>

<p>Don&#39;t eval code under <code>no strict</code>.</p>

</li>
<li><p><a href="./Scalar::Util.html">Scalar::Util</a> has been upgraded to version 1.27.</p>

<p>Fix an overloading issue with <code>sum</code>.</p>

<p><code>first</code> and <code>reduce</code> now check the callback first (so <code>&amp;first(1)</code> is disallowed).</p>

<p>Fix <code>tainted</code> on magical values [rt.cpan.org #55763].</p>

<p>Fix <code>sum</code> on previously magical values [rt.cpan.org #61118].</p>

<p>Fix reading past the end of a fixed buffer [rt.cpan.org #72700].</p>

</li>
<li><p><a href="./Search::Dict.html">Search::Dict</a> has been upgraded to 1.07.</p>

<p>No longer require <code>stat</code> on filehandles.</p>

<p>Use <code>fc</code> for casefolding.</p>

</li>
<li><p><a href="Socket.html">Socket</a> has been upgraded to 2.009.</p>

<p>Constants and functions required for IP multicast source group membership have been added.</p>

<p><code>unpack_sockaddr_in()</code> and <code>unpack_sockaddr_in6()</code> now return just the IP address in scalar context, and <code>inet_ntop()</code> now guards against incorrect length scalars being passed in.</p>

<p>This fixes an uninitialized memory read.</p>

</li>
<li><p><a href="Storable.html">Storable</a> has been upgraded to 2.41.</p>

<p>Modifying <code>$_[0]</code> within <code>STORABLE_freeze</code> no longer results in crashes [perl #112358].</p>

<p>An object whose class implements <code>STORABLE_attach</code> is now thawed only once when there are multiple references to it in the structure being thawed [perl #111918].</p>

<p>Restricted hashes were not always thawed correctly [perl #73972].</p>

<p>Storable would croak when freezing a blessed REF object with a <code>STORABLE_freeze()</code> method [perl #113880].</p>

<p>It can now freeze and thaw vstrings correctly. This causes a slight incompatible change in the storage format, so the format version has increased to 2.9.</p>

<p>This contains various bugfixes, including compatibility fixes for older versions of Perl and vstring handling.</p>

</li>
<li><p><a href="./Sys::Syslog.html">Sys::Syslog</a> has been upgraded to 0.32.</p>

<p>This contains several bug fixes relating to <code>getservbyname()</code>, <code>setlogsock()</code>and log levels in <code>syslog()</code>, together with fixes for Windows, Haiku-OS and GNU/kFreeBSD. See <i>cpan/Sys-Syslog/Changes</i> for the full details.</p>

</li>
<li><p><a href="./Term::ANSIColor.html">Term::ANSIColor</a> has been upgraded to 4.02.</p>

<p>Add support for italics.</p>

<p>Improve error handling.</p>

</li>
<li><p><a href="./Term::ReadLine.html">Term::ReadLine</a> has been upgraded to 1.10. This fixes the use of the <b>cpan</b> and <b>cpanp</b> shells on Windows in the event that the current drive happens to contain a <i>\dev\tty</i> file.</p>

</li>
<li><p><a href="./Test::Harness.html">Test::Harness</a> has been upgraded to 3.26.</p>

<p>Fix glob semantics on Win32 [rt.cpan.org #49732].</p>

<p>Don&#39;t use <code>Win32::GetShortPathName</code> when calling perl [rt.cpan.org #47890].</p>

<p>Ignore -T when reading shebang [rt.cpan.org #64404].</p>

<p>Handle the case where we don&#39;t know the wait status of the test more gracefully.</p>

<p>Make the test summary &#39;ok&#39; line overridable so that it can be changed to a plugin to make the output of prove idempotent.</p>

<p>Don&#39;t run world-writable files.</p>

</li>
<li><p><a href="./Text::Tabs.html">Text::Tabs</a> and <a href="./Text::Wrap.html">Text::Wrap</a> have been upgraded to 2012.0818. Support for Unicode combining characters has been added to them both.</p>

</li>
<li><p><a href="./threads::shared.html">threads::shared</a> has been upgraded to 1.31.</p>

<p>This adds the option to warn about or ignore attempts to clone structures that can&#39;t be cloned, as opposed to just unconditionally dying in that case.</p>

<p>This adds support for dual-valued values as created by <a href="./Scalar::Util.html#dualvar-NUM%2C-STRING">Scalar::Util::dualvar</a>.</p>

</li>
<li><p><a href="./Tie::StdHandle.html">Tie::StdHandle</a> has been upgraded to 4.3.</p>

<p><code>READ</code> now respects the offset argument to <code>read</code> [perl #112826].</p>

</li>
<li><p><a href="./Time::Local.html">Time::Local</a> has been upgraded to 1.2300.</p>

<p>Seconds values greater than 59 but less than 60 no longer cause <code>timegm()</code> and <code>timelocal()</code> to croak.</p>

</li>
<li><p><a href="./Unicode::UCD.html">Unicode::UCD</a> has been upgraded to 0.53.</p>

<p>This adds a function <a href="./Unicode::UCD.html#all_casefolds%28%29">all_casefolds()</a> that returns all the casefolds.</p>

</li>
<li><p><a href="Win32.html">Win32</a> has been upgraded to 0.47.</p>

<p>New APIs have been added for getting and setting the current code page.</p>

</li>
</ul>

<h2 id="Removed-Modules-and-Pragmata"><a class="permalink" href="perl5180delta.html#Removed-Modules-and-Pragmata">#</a><a id="Removed"></a>Removed Modules and Pragmata</h2>

<ul>

<li><p><a href="./Version::Requirements.html">Version::Requirements</a> has been removed from the core distribution. It is available under a different name: <a href="./CPAN::Meta::Requirements.html">CPAN::Meta::Requirements</a>.</p>

</li>
</ul>

<h1 id="Documentation"><a class="permalink" href="perl5180delta.html#Documentation">#</a>Documentation</h1>

<h2 id="Changes-to-Existing-Documentation"><a class="permalink" href="perl5180delta.html#Changes-to-Existing-Documentation">#</a><a id="Changes"></a>Changes to Existing Documentation</h2>

<h3 id="perlcheat"><a class="permalink" href="perl5180delta.html#perlcheat">#</a><a href="perlcheat.html">perlcheat</a></h3>

<ul>

<li><p><a href="perlcheat.html">perlcheat</a> has been reorganized, and a few new sections were added.</p>

</li>
</ul>

<h3 id="perldata"><a class="permalink" href="perl5180delta.html#perldata">#</a><a href="perldata.html">perldata</a></h3>

<ul>

<li><p>Now explicitly documents the behaviour of hash initializer lists that contain duplicate keys.</p>

</li>
</ul>

<h3 id="perldiag"><a class="permalink" href="perl5180delta.html#perldiag">#</a><a href="perldiag.html">perldiag</a></h3>

<ul>

<li><p>The explanation of symbolic references being prevented by &quot;strict refs&quot; now doesn&#39;t assume that the reader knows what symbolic references are.</p>

</li>
</ul>

<h3 id="perlfaq"><a class="permalink" href="perl5180delta.html#perlfaq">#</a><a href="perlfaq.html">perlfaq</a></h3>

<ul>

<li><p><a href="perlfaq.html">perlfaq</a> has been synchronized with version 5.0150040 from CPAN.</p>

</li>
</ul>

<h3 id="perlfunc"><a class="permalink" href="perl5180delta.html#perlfunc">#</a><a href="perlfunc.html">perlfunc</a></h3>

<ul>

<li><p>The return value of <code>pipe</code> is now documented.</p>

</li>
<li><p>Clarified documentation of <code>our</code>.</p>

</li>
</ul>

<h3 id="perlop"><a class="permalink" href="perl5180delta.html#perlop">#</a><a href="perlop.html">perlop</a></h3>

<ul>

<li><p>Loop control verbs (<code>dump</code>, <code>goto</code>, <code>next</code>, <code>last</code> and <code>redo</code>) have always had the same precedence as assignment operators, but this was not documented until now.</p>

</li>
</ul>

<h3 id="Diagnostics"><a class="permalink" href="perl5180delta.html#Diagnostics">#</a>Diagnostics</h3>

<p>The following additions or changes have been made to diagnostic output, including warnings and fatal error messages. For the complete list of diagnostic messages, see <a href="perldiag.html">perldiag</a>.</p>

<h2 id="New-Diagnostics"><a class="permalink" href="perl5180delta.html#New-Diagnostics">#</a><a id="New5"></a>New Diagnostics</h2>

<h3 id="New-Errors"><a class="permalink" href="perl5180delta.html#New-Errors">#</a><a id="New6"></a>New Errors</h3>

<ul>

<li><p><a href="perldiag.html#Unterminated-delimiter-for-here-document">Unterminated delimiter for here document</a></p>

<p>This message now occurs when a here document label has an initial quotation mark but the final quotation mark is missing.</p>

<p>This replaces a bogus and misleading error message about not finding the label itself [perl #114104].</p>

</li>
<li><p><a href="perldiag.html#panic%3A-child-pseudo-process-was-never-scheduled">panic: child pseudo-process was never scheduled</a></p>

<p>This error is thrown when a child pseudo-process in the ithreads implementation on Windows was not scheduled within the time period allowed and therefore was not able to initialize properly [perl #88840].</p>

</li>
<li><p><a href="perldiag.html#Group-name-must-start-with-a-non-digit-word-character-in-regex%3B-marked-by-%3C-HERE-in-m%2F%25s%2F">Group name must start with a non-digit word character in regex; marked by &lt;-- HERE in m/%s/</a></p>

<p>This error has been added for <code>(?&amp;0)</code>, which is invalid. It used to produce an incomprehensible error message [perl #101666].</p>

</li>
<li><p><a href="perldiag.html#Can%27t-use-an-undefined-value-as-%25s-reference">Can&#39;t use an undefined value as a subroutine reference</a></p>

<p>Calling an undefined value as a subroutine now produces this error message. It used to, but was accidentally disabled, first in Perl 5.004 for non-magical variables, and then in Perl v5.14 for magical (e.g., tied) variables. It has now been restored. In the mean time, undef was treated as an empty string [perl #113576].</p>

</li>
<li><p><a href="perldiag.html#Experimental-%22%25s%22-subs-not-enabled">Experimental &quot;%s&quot; subs not enabled</a></p>

<p>To use lexical subs, you must first enable them:</p>

<pre><code>no warnings &#39;experimental::lexical_subs&#39;;
use feature &#39;lexical_subs&#39;;
my sub foo { ... }</code></pre>

</li>
</ul>

<h3 id="New-Warnings"><a class="permalink" href="perl5180delta.html#New-Warnings">#</a><a id="New7"></a>New Warnings</h3>

<ul>

<li><p><a href="perldiag.html#Strings-with-code-points-over-0xFF-may-not-be-mapped-into-in-memory-file-handles">&#39;Strings with code points over 0xFF may not be mapped into in-memory file handles&#39;</a></p>

</li>
<li><p><a href="perldiag.html#%27%25s%27-resolved-to-%27%5Co%7B%25s%7D%25d%27">&#39;%s&#39; resolved to &#39;\o{%s}%d&#39;</a></p>

</li>
<li><p><a href="perldiag.html#Trailing-white-space-in-a-charnames-alias-definition-is-deprecated">&#39;Trailing white-space in a charnames alias definition is deprecated&#39;</a></p>

</li>
<li><p><a href="perldiag.html#A-sequence-of-multiple-spaces-in-a-charnames-alias-definition-is-deprecated">&#39;A sequence of multiple spaces in a charnames alias definition is deprecated&#39;</a></p>

</li>
<li><p><a href="perldiag.html#Passing-malformed-UTF-8-to-%22%25s%22-is-deprecated">&#39;Passing malformed UTF-8 to &quot;%s&quot; is deprecated&#39;</a></p>

</li>
<li><p><a href="perldiag.html#Subroutine-%22%26%25s%22-is-not-available">Subroutine &quot;&amp;%s&quot; is not available</a></p>

<p>(W closure) During compilation, an inner named subroutine or eval is attempting to capture an outer lexical subroutine that is not currently available. This can happen for one of two reasons. First, the lexical subroutine may be declared in an outer anonymous subroutine that has not yet been created. (Remember that named subs are created at compile time, while anonymous subs are created at run-time.) For example,</p>

<pre><code class="plaintext">sub { my sub a {...} sub f { \&amp;a } }</code></pre>

<p>At the time that f is created, it can&#39;t capture the current the &quot;a&quot; sub, since the anonymous subroutine hasn&#39;t been created yet. Conversely, the following won&#39;t give a warning since the anonymous subroutine has by now been created and is live:</p>

<pre><code>sub { my sub a {...} eval &#39;sub f { \&amp;a }&#39; }-&gt;();</code></pre>

<p>The second situation is caused by an eval accessing a variable that has gone out of scope, for example,</p>

<pre><code>sub f {
    my sub a {...}
    sub { eval &#39;\&amp;a&#39; }
}
f()-&gt;();</code></pre>

<p>Here, when the &#39;\&amp;a&#39; in the eval is being compiled, f() is not currently being executed, so its &amp;a is not available for capture.</p>

</li>
<li><p><a href="perldiag.html#%22%25s%22-subroutine-%26%25s-masks-earlier-declaration-in-same-%25s">&quot;%s&quot; subroutine &amp;%s masks earlier declaration in same %s</a></p>

<p>(W misc) A &quot;my&quot; or &quot;state&quot; subroutine has been redeclared in the current scope or statement, effectively eliminating all access to the previous instance. This is almost always a typographical error. Note that the earlier subroutine will still exist until the end of the scope or until all closure references to it are destroyed.</p>

</li>
<li><p><a href="perldiag.html#The-%25s-feature-is-experimental">The %s feature is experimental</a></p>

<p>(S experimental) This warning is emitted if you enable an experimental feature via <code>use feature</code>. Simply suppress the warning if you want to use the feature, but know that in doing so you are taking the risk of using an experimental feature which may change or be removed in a future Perl version:</p>

<pre><code>no warnings &quot;experimental::lexical_subs&quot;;
use feature &quot;lexical_subs&quot;;</code></pre>

</li>
<li><p><a href="perldiag.html#sleep%28%25u%29-too-large">sleep(%u) too large</a></p>

<p>(W overflow) You called <code>sleep</code> with a number that was larger than it can reliably handle and <code>sleep</code> probably slept for less time than requested.</p>

</li>
<li><p><a href="perldiag.html#Wide-character-in-%25s">Wide character in setenv</a></p>

<p>Attempts to put wide characters into environment variables via <code>%ENV</code> now provoke this warning.</p>

</li>
<li><p>&quot;<a href="perldiag.html#Invalid-negative-number-%28%25s%29-in-chr">Invalid negative number (%s) in chr</a>&quot;</p>

<p><code>chr()</code> now warns when passed a negative value [perl #83048].</p>

</li>
<li><p>&quot;<a href="perldiag.html#Integer-overflow-in-srand">Integer overflow in srand</a>&quot;</p>

<p><code>srand()</code> now warns when passed a value that doesn&#39;t fit in a <code>UV</code> (since the value will be truncated rather than overflowing) [perl #40605].</p>

</li>
<li><p>&quot;<a href="perldiag.html#-i-used-with-no-filenames-on-the-command-line%2C-reading-from-STDIN">-i used with no filenames on the command line, reading from STDIN</a>&quot;</p>

<p>Running perl with the <code>-i</code> flag now warns if no input files are provided on the command line [perl #113410].</p>

</li>
</ul>

<h2 id="Changes-to-Existing-Diagnostics"><a class="permalink" href="perl5180delta.html#Changes-to-Existing-Diagnostics">#</a><a id="Changes1"></a>Changes to Existing Diagnostics</h2>

<ul>

<li><p><a href="perldiag.html#%24%2A-is-no-longer-supported">$* is no longer supported</a></p>

<p>The warning that use of <code>$*</code> and <code>$#</code> is no longer supported is now generated for every location that references them. Previously it would fail to be generated if another variable using the same typeglob was seen first (e.g. <code>@*</code> before <code>$*</code>), and would not be generated for the second and subsequent uses. (It&#39;s hard to fix the failure to generate warnings at all without also generating them every time, and warning every time is consistent with the warnings that <code>$[</code> used to generate.)</p>

</li>
<li><p>The warnings for <code>\b{</code> and <code>\B{</code> were added. They are a deprecation warning which should be turned off by that category. One should not have to turn off regular regexp warnings as well to get rid of these.</p>

</li>
<li><p><a href="perldiag.html#Constant%28%25s%29%3A-Call-to-%26%7B%24%5EH%7B%25s%7D%7D-did-not-return-a-defined-value">Constant(%s): Call to &amp;{$^H{%s}} did not return a defined value</a></p>

<p>Constant overloading that returns <code>undef</code> results in this error message. For numeric constants, it used to say &quot;Constant(undef)&quot;. &quot;undef&quot; has been replaced with the number itself.</p>

</li>
<li><p>The error produced when a module cannot be loaded now includes a hint that the module may need to be installed: &quot;Can&#39;t locate hopping.pm in @INC (you may need to install the hopping module) (@INC contains: ...)&quot;</p>

</li>
<li><p><a href="perldiag.html#vector-argument-not-supported-with-alpha-versions">vector argument not supported with alpha versions</a></p>

<p>This warning was not suppressible, even with <code>no warnings</code>. Now it is suppressible, and has been moved from the &quot;internal&quot; category to the &quot;printf&quot; category.</p>

</li>
<li><p><code>Can&#39;t do {n,m} with n &gt; m in regex; marked by &lt;-- HERE in m/%s/</code></p>

<p>This fatal error has been turned into a warning that reads:</p>

<p><a href="https://perldoc.perl.org/5.35.0/&#32;perldiag#Quantifier-%7Bn%2Cm%7D-with-n-%3E-m-can%27t-match-in-regex">Quantifier {n,m} with n &gt; m can&#39;t match in regex </a></p>

<p>(W regexp) Minima should be less than or equal to maxima. If you really want your regexp to match something 0 times, just put {0}.</p>

</li>
<li><p>The &quot;Runaway prototype&quot; warning that occurs in bizarre cases has been removed as being unhelpful and inconsistent.</p>

</li>
<li><p>The &quot;Not a format reference&quot; error has been removed, as the only case in which it could be triggered was a bug.</p>

</li>
<li><p>The &quot;Unable to create sub named %s&quot; error has been removed for the same reason.</p>

</li>
<li><p>The &#39;Can&#39;t use &quot;my %s&quot; in sort comparison&#39; error has been downgraded to a warning, &#39;&quot;my %s&quot; used in sort comparison&#39; (with &#39;state&#39; instead of &#39;my&#39; for state variables). In addition, the heuristics for guessing whether lexical $a or $b has been misused have been improved to generate fewer false positives. Lexical $a and $b are no longer disallowed if they are outside the sort block. Also, a named unary or list operator inside the sort block no longer causes the $a or $b to be ignored [perl #86136].</p>

</li>
</ul>

<h1 id="Utility-Changes"><a class="permalink" href="perl5180delta.html#Utility-Changes">#</a><a id="Utility"></a>Utility Changes</h1>

<h3 id="h2xs"><a class="permalink" href="perl5180delta.html#h2xs">#</a><a href="h2xs.html">h2xs</a></h3>

<ul>

<li><p><i>h2xs</i> no longer produces invalid code for empty defines. [perl #20636]</p>

</li>
</ul>

<h1 id="Configuration-and-Compilation"><a class="permalink" href="perl5180delta.html#Configuration-and-Compilation">#</a><a id="Configuration"></a>Configuration and Compilation</h1>

<ul>

<li><p>Added <code>useversionedarchname</code> option to Configure</p>

<p>When set, it includes &#39;api_versionstring&#39; in &#39;archname&#39;. E.g. x86_64-linux-5.13.6-thread-multi. It is unset by default.</p>

<p>This feature was requested by Tim Bunce, who observed that <code>INSTALL_BASE</code> creates a library structure that does not differentiate by perl version. Instead, it places architecture specific files in &quot;$install_base/lib/perl5/$archname&quot;. This makes it difficult to use a common <code>INSTALL_BASE</code> library path with multiple versions of perl.</p>

<p>By setting <code>-Duseversionedarchname</code>, the $archname will be distinct for architecture <i>and</i> API version, allowing mixed use of <code>INSTALL_BASE</code>.</p>

</li>
<li><p>Add a <code>PERL_NO_INLINE_FUNCTIONS</code> option</p>

<p>If <code>PERL_NO_INLINE_FUNCTIONS</code> is defined, don&#39;t include &quot;inline.h&quot;</p>

<p>This permits test code to include the perl headers for definitions without creating a link dependency on the perl library (which may not exist yet).</p>

</li>
<li><p>Configure will honour the external <code>MAILDOMAIN</code> environment variable, if set.</p>

</li>
<li><p><code>installman</code> no longer ignores the silent option</p>

</li>
<li><p>Both <code>META.yml</code> and <code>META.json</code> files are now included in the distribution.</p>

</li>
<li><p><i>Configure</i> will now correctly detect <code>isblank()</code> when compiling with a C++ compiler.</p>

</li>
<li><p>The pager detection in <i>Configure</i> has been improved to allow responses which specify options after the program name, e.g. <b>/usr/bin/less -R</b>, if the user accepts the default value. This helps <b>perldoc</b> when handling ANSI escapes [perl #72156].</p>

</li>
</ul>

<h1 id="Testing"><a class="permalink" href="perl5180delta.html#Testing">#</a>Testing</h1>

<ul>

<li><p>The test suite now has a section for tests that require very large amounts of memory. These tests won&#39;t run by default; they can be enabled by setting the <code>PERL_TEST_MEMORY</code> environment variable to the number of gibibytes of memory that may be safely used.</p>

</li>
</ul>

<h1 id="Platform-Support"><a class="permalink" href="perl5180delta.html#Platform-Support">#</a><a id="Platform"></a>Platform Support</h1>

<h2 id="Discontinued-Platforms"><a class="permalink" href="perl5180delta.html#Discontinued-Platforms">#</a><a id="Discontinued"></a>Discontinued Platforms</h2>

<dl>

<dt id="BeOS"><a class="permalink" href="perl5180delta.html#BeOS">#</a>BeOS</dt>
<dd>

<p>BeOS was an operating system for personal computers developed by Be Inc, initially for their BeBox hardware. The OS Haiku was written as an open source replacement for/continuation of BeOS, and its perl port is current and actively maintained.</p>

</dd>
<dt id="UTS-Global"><a class="permalink" href="perl5180delta.html#UTS-Global">#</a><a id="UTS"></a>UTS Global</dt>
<dd>

<p>Support code relating to UTS global has been removed. UTS was a mainframe version of System V created by Amdahl, subsequently sold to UTS Global. The port has not been touched since before Perl v5.8.0, and UTS Global is now defunct.</p>

</dd>
<dt id="VM/ESA"><a class="permalink" href="perl5180delta.html#VM/ESA">#</a><a id="VM"></a><a id="VM-ESA"></a>VM/ESA</dt>
<dd>

<p>Support for VM/ESA has been removed. The port was tested on 2.3.0, which IBM ended service on in March 2002. 2.4.0 ended service in June 2003, and was superseded by Z/VM. The current version of Z/VM is V6.2.0, and scheduled for end of service on 2015/04/30.</p>

</dd>
<dt id="MPE/IX"><a class="permalink" href="perl5180delta.html#MPE/IX">#</a><a id="MPE"></a><a id="MPE-IX"></a>MPE/IX</dt>
<dd>

<p>Support for MPE/IX has been removed.</p>

</dd>
<dt id="EPOC"><a class="permalink" href="perl5180delta.html#EPOC">#</a>EPOC</dt>
<dd>

<p>Support code relating to EPOC has been removed. EPOC was a family of operating systems developed by Psion for mobile devices. It was the predecessor of Symbian. The port was last updated in April 2002.</p>

</dd>
<dt id="Rhapsody"><a class="permalink" href="perl5180delta.html#Rhapsody">#</a>Rhapsody</dt>
<dd>

<p>Support for Rhapsody has been removed.</p>

</dd>
</dl>

<h2 id="Platform-Specific-Notes"><a class="permalink" href="perl5180delta.html#Platform-Specific-Notes">#</a><a id="Platform1"></a>Platform-Specific Notes</h2>

<h3 id="AIX"><a class="permalink" href="perl5180delta.html#AIX">#</a>AIX</h3>

<p>Configure now always adds <code>-qlanglvl=extc99</code> to the CC flags on AIX when using xlC. This will make it easier to compile a number of XS-based modules that assume C99 [perl #113778].</p>

<h3 id="clang++"><a class="permalink" href="perl5180delta.html#clang++">#</a><a id="clang"></a>clang++</h3>

<p>There is now a workaround for a compiler bug that prevented compiling with clang++ since Perl v5.15.7 [perl #112786].</p>

<h3 id="C++"><a class="permalink" href="perl5180delta.html#C++">#</a><a id="C"></a>C++</h3>

<p>When compiling the Perl core as C++ (which is only semi-supported), the mathom functions are now compiled as <code>extern &quot;C&quot;</code>, to ensure proper binary compatibility. (However, binary compatibility isn&#39;t generally guaranteed anyway in the situations where this would matter.)</p>

<h3 id="Darwin"><a class="permalink" href="perl5180delta.html#Darwin">#</a>Darwin</h3>

<p>Stop hardcoding an alignment on 8 byte boundaries to fix builds using -Dusemorebits.</p>

<h3 id="Haiku"><a class="permalink" href="perl5180delta.html#Haiku">#</a>Haiku</h3>

<p>Perl should now work out of the box on Haiku R1 Alpha 4.</p>

<h3 id="MidnightBSD"><a class="permalink" href="perl5180delta.html#MidnightBSD">#</a>MidnightBSD</h3>

<p><code>libc_r</code> was removed from recent versions of MidnightBSD and older versions work better with <code>pthread</code>. Threading is now enabled using <code>pthread</code> which corrects build errors with threading enabled on 0.4-CURRENT.</p>

<h3 id="Solaris"><a class="permalink" href="perl5180delta.html#Solaris">#</a>Solaris</h3>

<p>In Configure, avoid running sed commands with flags not supported on Solaris.</p>

<h3 id="VMS"><a class="permalink" href="perl5180delta.html#VMS">#</a>VMS</h3>

<ul>

<li><p>Where possible, the case of filenames and command-line arguments is now preserved by enabling the CRTL features <code>DECC$EFS_CASE_PRESERVE</code> and <code>DECC$ARGV_PARSE_STYLE</code> at start-up time. The latter only takes effect when extended parse is enabled in the process from which Perl is run.</p>

</li>
<li><p>The character set for Extended Filename Syntax (EFS) is now enabled by default on VMS. Among other things, this provides better handling of dots in directory names, multiple dots in filenames, and spaces in filenames. To obtain the old behavior, set the logical name <code>DECC$EFS_CHARSET</code> to <code>DISABLE</code>.</p>

</li>
<li><p>Fixed linking on builds configured with <code>-Dusemymalloc=y</code>.</p>

</li>
<li><p>Experimental support for building Perl with the HP C++ compiler is available by configuring with <code>-Dusecxx</code>.</p>

</li>
<li><p>All C header files from the top-level directory of the distribution are now installed on VMS, providing consistency with a long-standing practice on other platforms. Previously only a subset were installed, which broke non-core extension builds for extensions that depended on the missing include files.</p>

</li>
<li><p>Quotes are now removed from the command verb (but not the parameters) for commands spawned via <code>system</code>, backticks, or a piped <code>open</code>. Previously, quotes on the verb were passed through to DCL, which would fail to recognize the command. Also, if the verb is actually a path to an image or command procedure on an ODS-5 volume, quoting it now allows the path to contain spaces.</p>

</li>
<li><p>The <b>a2p</b> build has been fixed for the HP C++ compiler on OpenVMS.</p>

</li>
</ul>

<h3 id="Win32"><a class="permalink" href="perl5180delta.html#Win32">#</a>Win32</h3>

<ul>

<li><p>Perl can now be built using Microsoft&#39;s Visual C++ 2012 compiler by specifying CCTYPE=MSVC110 (or MSVC110FREE if you are using the free Express edition for Windows Desktop) in <i>win32/Makefile</i>.</p>

</li>
<li><p>The option to build without <code>USE_SOCKETS_AS_HANDLES</code> has been removed.</p>

</li>
<li><p>Fixed a problem where perl could crash while cleaning up threads (including the main thread) in threaded debugging builds on Win32 and possibly other platforms [perl #114496].</p>

</li>
<li><p>A rare race condition that would lead to <a href="perlfunc.html#sleep">sleep</a> taking more time than requested, and possibly even hanging, has been fixed [perl #33096].</p>

</li>
<li><p><code>link</code> on Win32 now attempts to set <code>$!</code> to more appropriate values based on the Win32 API error code. [perl #112272]</p>

<p>Perl no longer mangles the environment block, e.g. when launching a new sub-process, when the environment contains non-ASCII characters. Known problems still remain, however, when the environment contains characters outside of the current ANSI codepage (e.g. see the item about Unicode in <code>%ENV</code> in <a href="http://perl5.git.perl.org/perl.git/blob/HEAD:/Porting/todo.pod">http://perl5.git.perl.org/perl.git/blob/HEAD:/Porting/todo.pod</a>). [perl #113536]</p>

</li>
<li><p>Building perl with some Windows compilers used to fail due to a problem with miniperl&#39;s <code>glob</code> operator (which uses the <code>perlglob</code> program) deleting the PATH environment variable [perl #113798].</p>

</li>
<li><p>A new makefile option, <code>USE_64_BIT_INT</code>, has been added to the Windows makefiles. Set this to &quot;define&quot; when building a 32-bit perl if you want it to use 64-bit integers.</p>

<p>Machine code size reductions, already made to the DLLs of XS modules in Perl v5.17.2, have now been extended to the perl DLL itself.</p>

<p>Building with VC++ 6.0 was inadvertently broken in Perl v5.17.2 but has now been fixed again.</p>

</li>
</ul>

<h3 id="WinCE"><a class="permalink" href="perl5180delta.html#WinCE">#</a>WinCE</h3>

<p>Building on WinCE is now possible once again, although more work is required to fully restore a clean build.</p>

<h1 id="Internal-Changes"><a class="permalink" href="perl5180delta.html#Internal-Changes">#</a><a id="Internal"></a>Internal Changes</h1>

<ul>

<li><p>Synonyms for the misleadingly named <code>av_len()</code> have been created: <code>av_top_index()</code> and <code>av_tindex</code>. All three of these return the number of the highest index in the array, not the number of elements it contains.</p>

</li>
<li><p>SvUPGRADE() is no longer an expression. Originally this macro (and its underlying function, sv_upgrade()) were documented as boolean, although in reality they always croaked on error and never returned false. In 2005 the documentation was updated to specify a void return value, but SvUPGRADE() was left always returning 1 for backwards compatibility. This has now been removed, and SvUPGRADE() is now a statement with no return value.</p>

<p>So this is now a syntax error:</p>

<pre><code class="plaintext">if (!SvUPGRADE(sv)) { croak(...); }</code></pre>

<p>If you have code like that, simply replace it with</p>

<pre><code>SvUPGRADE(sv);</code></pre>

<p>or to avoid compiler warnings with older perls, possibly</p>

<pre><code>(void)SvUPGRADE(sv);</code></pre>

</li>
<li><p>Perl has a new copy-on-write mechanism that allows any SvPOK scalar to be upgraded to a copy-on-write scalar. A reference count on the string buffer is stored in the string buffer itself. This feature is <b>not enabled by default</b>.</p>

<p>It can be enabled in a perl build by running <i>Configure</i> with <b>-Accflags=-DPERL_NEW_COPY_ON_WRITE</b>, and we would encourage XS authors to try their code with such an enabled perl, and provide feedback. Unfortunately, there is not yet a good guide to updating XS code to cope with COW. Until such a document is available, consult the perl5-porters mailing list.</p>

<p>It breaks a few XS modules by allowing copy-on-write scalars to go through code paths that never encountered them before.</p>

</li>
<li><p>Copy-on-write no longer uses the SvFAKE and SvREADONLY flags. Hence, SvREADONLY indicates a true read-only SV.</p>

<p>Use the SvIsCOW macro (as before) to identify a copy-on-write scalar.</p>

</li>
<li><p><code>PL_glob_index</code> is gone.</p>

</li>
<li><p>The private Perl_croak_no_modify has had its context parameter removed. It is now has a void prototype. Users of the public API croak_no_modify remain unaffected.</p>

</li>
<li><p>Copy-on-write (shared hash key) scalars are no longer marked read-only. <code>SvREADONLY</code> returns false on such an SV, but <code>SvIsCOW</code> still returns true.</p>

</li>
<li><p>A new op type, <code>OP_PADRANGE</code> has been introduced. The perl peephole optimiser will, where possible, substitute a single padrange op for a pushmark followed by one or more pad ops, and possibly also skipping list and nextstate ops. In addition, the op can carry out the tasks associated with the RHS of a <code>my(...) = @_</code> assignment, so those ops may be optimised away too.</p>

</li>
<li><p>Case-insensitive matching inside a [bracketed] character class with a multi-character fold no longer excludes one of the possibilities in the circumstances that it used to. [perl #89774].</p>

</li>
<li><p><code>PL_formfeed</code> has been removed.</p>

</li>
<li><p>The regular expression engine no longer reads one byte past the end of the target string. While for all internally well-formed scalars this should never have been a problem, this change facilitates clever tricks with string buffers in CPAN modules. [perl #73542]</p>

</li>
<li><p>Inside a BEGIN block, <code>PL_compcv</code> now points to the currently-compiling subroutine, rather than the BEGIN block itself.</p>

</li>
<li><p><code>mg_length</code> has been deprecated.</p>

</li>
<li><p><code>sv_len</code> now always returns a byte count and <code>sv_len_utf8</code> a character count. Previously, <code>sv_len</code> and <code>sv_len_utf8</code> were both buggy and would sometimes returns bytes and sometimes characters. <code>sv_len_utf8</code> no longer assumes that its argument is in UTF-8. Neither of these creates UTF-8 caches for tied or overloaded values or for non-PVs any more.</p>

</li>
<li><p><code>sv_mortalcopy</code> now copies string buffers of shared hash key scalars when called from XS modules [perl #79824].</p>

</li>
<li><p>The new <code>RXf_MODIFIES_VARS</code> flag can be set by custom regular expression engines to indicate that the execution of the regular expression may cause variables to be modified. This lets <code>s///</code> know to skip certain optimisations. Perl&#39;s own regular expression engine sets this flag for the special backtracking verbs that set $REGMARK and $REGERROR.</p>

</li>
<li><p>The APIs for accessing lexical pads have changed considerably.</p>

<p><code>PADLIST</code>s are now longer <code>AV</code>s, but their own type instead. <code>PADLIST</code>s now contain a <code>PAD</code> and a <code>PADNAMELIST</code> of <code>PADNAME</code>s, rather than <code>AV</code>s for the pad and the list of pad names. <code>PAD</code>s, <code>PADNAMELIST</code>s, and <code>PADNAME</code>s are to be accessed as such through the newly added pad API instead of the plain <code>AV</code> and <code>SV</code> APIs. See <a href="perlapi.html">perlapi</a> for details.</p>

</li>
<li><p>In the regex API, the numbered capture callbacks are passed an index indicating what match variable is being accessed. There are special index values for the <code>$`, $&amp;, $&amp;</code> variables. Previously the same three values were used to retrieve <code>${^PREMATCH}, ${^MATCH}, ${^POSTMATCH}</code> too, but these have now been assigned three separate values. See <a href="perlreapi.html#Numbered-capture-callbacks">&quot;Numbered capture callbacks&quot; in perlreapi</a>.</p>

</li>
<li><p><code>PL_sawampersand</code> was previously a boolean indicating that any of <code>$`, $&amp;, $&amp;</code> had been seen; it now contains three one-bit flags indicating the presence of each of the variables individually.</p>

</li>
<li><p>The <code>CV *</code> typemap entry now supports <code>&amp;{}</code> overloading and typeglobs, just like <code>&amp;{...}</code> [perl #96872].</p>

</li>
<li><p>The <code>SVf_AMAGIC</code> flag to indicate overloading is now on the stash, not the object. It is now set automatically whenever a method or @ISA changes, so its meaning has changed, too. It now means &quot;potentially overloaded&quot;. When the overload table is calculated, the flag is automatically turned off if there is no overloading, so there should be no noticeable slowdown.</p>

<p>The staleness of the overload tables is now checked when overload methods are invoked, rather than during <code>bless</code>.</p>

<p>&quot;A&quot; magic is gone. The changes to the handling of the <code>SVf_AMAGIC</code> flag eliminate the need for it.</p>

<p><code>PL_amagic_generation</code> has been removed as no longer necessary. For XS modules, it is now a macro alias to <code>PL_na</code>.</p>

<p>The fallback overload setting is now stored in a stash entry separate from overloadedness itself.</p>

</li>
<li><p>The character-processing code has been cleaned up in places. The changes should be operationally invisible.</p>

</li>
<li><p>The <code>study</code> function was made a no-op in v5.16. It was simply disabled via a <code>return</code> statement; the code was left in place. Now the code supporting what <code>study</code> used to do has been removed.</p>

</li>
<li><p>Under threaded perls, there is no longer a separate PV allocated for every COP to store its package name (<code>cop-&gt;stashpv</code>). Instead, there is an offset (<code>cop-&gt;stashoff</code>) into the new <code>PL_stashpad</code> array, which holds stash pointers.</p>

</li>
<li><p>In the pluggable regex API, the <code>regexp_engine</code> struct has acquired a new field <code>op_comp</code>, which is currently just for perl&#39;s internal use, and should be initialized to NULL by other regex plugin modules.</p>

</li>
<li><p>A new function <code>alloccopstash</code> has been added to the API, but is considered experimental. See <a href="perlapi.html">perlapi</a>.</p>

</li>
<li><p>Perl used to implement get magic in a way that would sometimes hide bugs in code that could call mg_get() too many times on magical values. This hiding of errors no longer occurs, so long-standing bugs may become visible now. If you see magic-related errors in XS code, check to make sure it, together with the Perl API functions it uses, calls mg_get() only once on SvGMAGICAL() values.</p>

</li>
<li><p>OP allocation for CVs now uses a slab allocator. This simplifies memory management for OPs allocated to a CV, so cleaning up after a compilation error is simpler and safer [perl #111462][perl #112312].</p>

</li>
<li><p><code>PERL_DEBUG_READONLY_OPS</code> has been rewritten to work with the new slab allocator, allowing it to catch more violations than before.</p>

</li>
<li><p>The old slab allocator for ops, which was only enabled for <code>PERL_IMPLICIT_SYS</code> and <code>PERL_DEBUG_READONLY_OPS</code>, has been retired.</p>

</li>
</ul>

<h1 id="Selected-Bug-Fixes"><a class="permalink" href="perl5180delta.html#Selected-Bug-Fixes">#</a><a id="Selected"></a>Selected Bug Fixes</h1>

<ul>

<li><p>Here document terminators no longer require a terminating newline character when they occur at the end of a file. This was already the case at the end of a string eval [perl #65838].</p>

</li>
<li><p><code>-DPERL_GLOBAL_STRUCT</code> builds now free the global struct <b>after</b> they&#39;ve finished using it.</p>

</li>
<li><p>A trailing &#39;/&#39; on a path in @INC will no longer have an additional &#39;/&#39; appended.</p>

</li>
<li><p>The <code>:crlf</code> layer now works when unread data doesn&#39;t fit into its own buffer. [perl #112244].</p>

</li>
<li><p><code>ungetc()</code> now handles UTF-8 encoded data. [perl #116322].</p>

</li>
<li><p>A bug in the core typemap caused any C types that map to the T_BOOL core typemap entry to not be set, updated, or modified when the T_BOOL variable was used in an OUTPUT: section with an exception for RETVAL. T_BOOL in an INPUT: section was not affected. Using a T_BOOL return type for an XSUB (RETVAL) was not affected. A side effect of fixing this bug is, if a T_BOOL is specified in the OUTPUT: section (which previous did nothing to the SV), and a read only SV (literal) is passed to the XSUB, croaks like &quot;Modification of a read-only value attempted&quot; will happen. [perl #115796]</p>

</li>
<li><p>On many platforms, providing a directory name as the script name caused perl to do nothing and report success. It should now universally report an error and exit nonzero. [perl #61362]</p>

</li>
<li><p><code>sort {undef} ...</code> under fatal warnings no longer crashes. It had begun crashing in Perl v5.16.</p>

</li>
<li><p>Stashes blessed into each other (<code>bless \%Foo::, &#39;Bar&#39;; bless \%Bar::, &#39;Foo&#39;</code>) no longer result in double frees. This bug started happening in Perl v5.16.</p>

</li>
<li><p>Numerous memory leaks have been fixed, mostly involving fatal warnings and syntax errors.</p>

</li>
<li><p>Some failed regular expression matches such as <code>&#39;f&#39; =~ /../g</code> were not resetting <code>pos</code>. Also, &quot;match-once&quot; patterns (<code>m?...?g</code>) failed to reset it, too, when invoked a second time [perl #23180].</p>

</li>
<li><p>Several bugs involving <code>local *ISA</code> and <code>local *Foo::</code> causing stale MRO caches have been fixed.</p>

</li>
<li><p>Defining a subroutine when its typeglob has been aliased no longer results in stale method caches. This bug was introduced in Perl v5.10.</p>

</li>
<li><p>Localising a typeglob containing a subroutine when the typeglob&#39;s package has been deleted from its parent stash no longer produces an error. This bug was introduced in Perl v5.14.</p>

</li>
<li><p>Under some circumstances, <code>local *method=...</code> would fail to reset method caches upon scope exit.</p>

</li>
<li><p><code>/[.foo.]/</code> is no longer an error, but produces a warning (as before) and is treated as <code>/[.fo]/</code> [perl #115818].</p>

</li>
<li><p><code>goto $tied_var</code> now calls FETCH before deciding what type of goto (subroutine or label) this is.</p>

</li>
<li><p>Renaming packages through glob assignment (<code>*Foo:: = *Bar::; *Bar:: = *Baz::</code>) in combination with <code>m?...?</code> and <code>reset</code> no longer makes threaded builds crash.</p>

</li>
<li><p>A number of bugs related to assigning a list to hash have been fixed. Many of these involve lists with repeated keys like <code>(1, 1, 1, 1)</code>.</p>

<ul>

<li><p>The expression <code>scalar(%h = (1, 1, 1, 1))</code> now returns <code>4</code>, not <code>2</code>.</p>

</li>
<li><p>The return value of <code>%h = (1, 1, 1)</code> in list context was wrong. Previously this would return <code>(1, undef, 1)</code>, now it returns <code>(1, undef)</code>.</p>

</li>
<li><p>Perl now issues the same warning on <code>($s, %h) = (1, {})</code> as it does for <code>(%h) = ({})</code>, &quot;Reference found where even-sized list expected&quot;.</p>

</li>
<li><p>A number of additional edge cases in list assignment to hashes were corrected. For more details see commit 23b7025ebc.</p>

</li>
</ul>

</li>
<li><p>Attributes applied to lexical variables no longer leak memory. [perl #114764]</p>

</li>
<li><p><code>dump</code>, <code>goto</code>, <code>last</code>, <code>next</code>, <code>redo</code> or <code>require</code> followed by a bareword (or version) and then an infix operator is no longer a syntax error. It used to be for those infix operators (like <code>+</code>) that have a different meaning where a term is expected. [perl #105924]</p>

</li>
<li><p><code>require a::b . 1</code> and <code>require a::b + 1</code> no longer produce erroneous ambiguity warnings. [perl #107002]</p>

</li>
<li><p>Class method calls are now allowed on any string, and not just strings beginning with an alphanumeric character. [perl #105922]</p>

</li>
<li><p>An empty pattern created with <code>qr//</code> used in <code>m///</code> no longer triggers the &quot;empty pattern reuses last pattern&quot; behaviour. [perl #96230]</p>

</li>
<li><p>Tying a hash during iteration no longer results in a memory leak.</p>

</li>
<li><p>Freeing a tied hash during iteration no longer results in a memory leak.</p>

</li>
<li><p>List assignment to a tied array or hash that dies on STORE no longer results in a memory leak.</p>

</li>
<li><p>If the hint hash (<code>%^H</code>) is tied, compile-time scope entry (which copies the hint hash) no longer leaks memory if FETCH dies. [perl #107000]</p>

</li>
<li><p>Constant folding no longer inappropriately triggers the special <code>split &quot; &quot;</code> behaviour. [perl #94490]</p>

</li>
<li><p><code>defined scalar(@array)</code>, <code>defined do { &amp;foo }</code>, and similar constructs now treat the argument to <code>defined</code> as a simple scalar. [perl #97466]</p>

</li>
<li><p>Running a custom debugging that defines no <code>*DB::DB</code> glob or provides a subroutine stub for <code>&amp;DB::DB</code> no longer results in a crash, but an error instead. [perl #114990]</p>

</li>
<li><p><code>reset &quot;&quot;</code> now matches its documentation. <code>reset</code> only resets <code>m?...?</code> patterns when called with no argument. An empty string for an argument now does nothing. (It used to be treated as no argument.) [perl #97958]</p>

</li>
<li><p><code>printf</code> with an argument returning an empty list no longer reads past the end of the stack, resulting in erratic behaviour. [perl #77094]</p>

</li>
<li><p><code>--subname</code> no longer produces erroneous ambiguity warnings. [perl #77240]</p>

</li>
<li><p><code>v10</code> is now allowed as a label or package name. This was inadvertently broken when v-strings were added in Perl v5.6. [perl #56880]</p>

</li>
<li><p><code>length</code>, <code>pos</code>, <code>substr</code> and <code>sprintf</code> could be confused by ties, overloading, references and typeglobs if the stringification of such changed the internal representation to or from UTF-8. [perl #114410]</p>

</li>
<li><p>utf8::encode now calls FETCH and STORE on tied variables. utf8::decode now calls STORE (it was already calling FETCH).</p>

</li>
<li><p><code>$tied =~ s/$non_utf8/$utf8/</code> no longer loops infinitely if the tied variable returns a Latin-1 string, shared hash key scalar, or reference or typeglob that stringifies as ASCII or Latin-1. This was a regression from v5.12.</p>

</li>
<li><p><code>s///</code> without /e is now better at detecting when it needs to forego certain optimisations, fixing some buggy cases:</p>

<ul>

<li><p>Match variables in certain constructs (<code>&amp;&amp;</code>, <code>||</code>, <code>..</code> and others) in the replacement part; e.g., <code>s/(.)/$l{$a||$1}/g</code>. [perl #26986]</p>

</li>
<li><p>Aliases to match variables in the replacement.</p>

</li>
<li><p><code>$REGERROR</code> or <code>$REGMARK</code> in the replacement. [perl #49190]</p>

</li>
<li><p>An empty pattern (<code>s//$foo/</code>) that causes the last-successful pattern to be used, when that pattern contains code blocks that modify the variables in the replacement.</p>

</li>
</ul>

</li>
<li><p>The taintedness of the replacement string no longer affects the taintedness of the return value of <code>s///e</code>.</p>

</li>
<li><p>The <code>$|</code> autoflush variable is created on-the-fly when needed. If this happened (e.g., if it was mentioned in a module or eval) when the currently-selected filehandle was a typeglob with an empty IO slot, it used to crash. [perl #115206]</p>

</li>
<li><p>Line numbers at the end of a string eval are no longer off by one. [perl #114658]</p>

</li>
<li><p>@INC filters (subroutines returned by subroutines in @INC) that set $_ to a copy-on-write scalar no longer cause the parser to modify that string buffer in place.</p>

</li>
<li><p><code>length($object)</code> no longer returns the undefined value if the object has string overloading that returns undef. [perl #115260]</p>

</li>
<li><p>The use of <code>PL_stashcache</code>, the stash name lookup cache for method calls, has been restored,</p>

<p>Commit da6b625f78f5f133 in August 2011 inadvertently broke the code that looks up values in <code>PL_stashcache</code>. As it&#39;s only a cache, quite correctly everything carried on working without it.</p>

</li>
<li><p>The error &quot;Can&#39;t localize through a reference&quot; had disappeared in v5.16.0 when <code>local %$ref</code> appeared on the last line of an lvalue subroutine. This error disappeared for <code>\local %$ref</code> in perl v5.8.1. It has now been restored.</p>

</li>
<li><p>The parsing of here-docs has been improved significantly, fixing several parsing bugs and crashes and one memory leak, and correcting wrong subsequent line numbers under certain conditions.</p>

</li>
<li><p>Inside an eval, the error message for an unterminated here-doc no longer has a newline in the middle of it [perl #70836].</p>

</li>
<li><p>A substitution inside a substitution pattern (<code>s/${s|||}//</code>) no longer confuses the parser.</p>

</li>
<li><p>It may be an odd place to allow comments, but <code>s//&quot;&quot; # hello/e</code> has always worked, <i>unless</i> there happens to be a null character before the first #. Now it works even in the presence of nulls.</p>

</li>
<li><p>An invalid range in <code>tr///</code> or <code>y///</code> no longer results in a memory leak.</p>

</li>
<li><p>String eval no longer treats a semicolon-delimited quote-like operator at the very end (<code>eval &#39;q;;&#39;</code>) as a syntax error.</p>

</li>
<li><p><code>warn {$_ =&gt; 1} + 1</code> is no longer a syntax error. The parser used to get confused with certain list operators followed by an anonymous hash and then an infix operator that shares its form with a unary operator.</p>

</li>
<li><p><code>(caller $n)[6]</code> (which gives the text of the eval) used to return the actual parser buffer. Modifying it could result in crashes. Now it always returns a copy. The string returned no longer has &quot;\n;&quot; tacked on to the end. The returned text also includes here-doc bodies, which used to be omitted.</p>

</li>
<li><p>The UTF-8 position cache is now reset when accessing magical variables, to avoid the string buffer and the UTF-8 position cache getting out of sync [perl #114410].</p>

</li>
<li><p>Various cases of get magic being called twice for magical UTF-8 strings have been fixed.</p>

</li>
<li><p>This code (when not in the presence of <code>$&amp;</code> etc)</p>

<pre><code>$_ = &#39;x&#39; x 1_000_000;
1 while /(.)/;</code></pre>

<p>used to skip the buffer copy for performance reasons, but suffered from <code>$1</code> etc changing if the original string changed. That&#39;s now been fixed.</p>

</li>
<li><p>Perl doesn&#39;t use PerlIO anymore to report out of memory messages, as PerlIO might attempt to allocate more memory.</p>

</li>
<li><p>In a regular expression, if something is quantified with <code>{n,m}</code> where <code><span style="white-space: nowrap;">n &gt; m</span></code>, it can&#39;t possibly match. Previously this was a fatal error, but now is merely a warning (and that something won&#39;t match). [perl #82954].</p>

</li>
<li><p>It used to be possible for formats defined in subroutines that have subsequently been undefined and redefined to close over variables in the wrong pad (the newly-defined enclosing sub), resulting in crashes or &quot;Bizarre copy&quot; errors.</p>

</li>
<li><p>Redefinition of XSUBs at run time could produce warnings with the wrong line number.</p>

</li>
<li><p>The %vd sprintf format does not support version objects for alpha versions. It used to output the format itself (%vd) when passed an alpha version, and also emit an &quot;Invalid conversion in printf&quot; warning. It no longer does, but produces the empty string in the output. It also no longer leaks memory in this case.</p>

</li>
<li><p><code>$obj-&gt;SUPER::method</code> calls in the main package could fail if the SUPER package had already been accessed by other means.</p>

</li>
<li><p>Stash aliasing (<code>*foo:: = *bar::</code>) no longer causes SUPER calls to ignore changes to methods or @ISA or use the wrong package.</p>

</li>
<li><p>Method calls on packages whose names end in ::SUPER are no longer treated as SUPER method calls, resulting in failure to find the method. Furthermore, defining subroutines in such packages no longer causes them to be found by SUPER method calls on the containing package [perl #114924].</p>

</li>
<li><p><code>\w</code> now matches the code points U+200C (ZERO WIDTH NON-JOINER) and U+200D (ZERO WIDTH JOINER). <code>\W</code> no longer matches these. This change is because Unicode corrected their definition of what <code>\w</code> should match.</p>

</li>
<li><p><code>dump LABEL</code> no longer leaks its label.</p>

</li>
<li><p>Constant folding no longer changes the behaviour of functions like <code>stat()</code> and <code>truncate()</code> that can take either filenames or handles. <code>stat 1 ? foo : bar</code> nows treats its argument as a file name (since it is an arbitrary expression), rather than the handle &quot;foo&quot;.</p>

</li>
<li><p><code>truncate FOO, $len</code> no longer falls back to treating &quot;FOO&quot; as a file name if the filehandle has been deleted. This was broken in Perl v5.16.0.</p>

</li>
<li><p>Subroutine redefinitions after sub-to-glob and glob-to-glob assignments no longer cause double frees or panic messages.</p>

</li>
<li><p><code>s///</code> now turns vstrings into plain strings when performing a substitution, even if the resulting string is the same (<code>s/a/a/</code>).</p>

</li>
<li><p>Prototype mismatch warnings no longer erroneously treat constant subs as having no prototype when they actually have &quot;&quot;.</p>

</li>
<li><p>Constant subroutines and forward declarations no longer prevent prototype mismatch warnings from omitting the sub name.</p>

</li>
<li><p><code>undef</code> on a subroutine now clears call checkers.</p>

</li>
<li><p>The <code>ref</code> operator started leaking memory on blessed objects in Perl v5.16.0. This has been fixed [perl #114340].</p>

</li>
<li><p><code>use</code> no longer tries to parse its arguments as a statement, making <code>use constant { () };</code> a syntax error [perl #114222].</p>

</li>
<li><p>On debugging builds, &quot;uninitialized&quot; warnings inside formats no longer cause assertion failures.</p>

</li>
<li><p>On debugging builds, subroutines nested inside formats no longer cause assertion failures [perl #78550].</p>

</li>
<li><p>Formats and <code>use</code> statements are now permitted inside formats.</p>

</li>
<li><p><code>print $x</code> and <code>sub { print $x }-&gt;()</code> now always produce the same output. It was possible for the latter to refuse to close over $x if the variable was not active; e.g., if it was defined outside a currently-running named subroutine.</p>

</li>
<li><p>Similarly, <code>print $x</code> and <code>print eval &#39;$x&#39;</code> now produce the same output. This also allows &quot;my $x if 0&quot; variables to be seen in the debugger [perl #114018].</p>

</li>
<li><p>Formats called recursively no longer stomp on their own lexical variables, but each recursive call has its own set of lexicals.</p>

</li>
<li><p>Attempting to free an active format or the handle associated with it no longer results in a crash.</p>

</li>
<li><p>Format parsing no longer gets confused by braces, semicolons and low-precedence operators. It used to be possible to use braces as format delimiters (instead of <code>=</code> and <code>.</code>), but only sometimes. Semicolons and low-precedence operators in format argument lines no longer confuse the parser into ignoring the line&#39;s return value. In format argument lines, braces can now be used for anonymous hashes, instead of being treated always as <code>do</code> blocks.</p>

</li>
<li><p>Formats can now be nested inside code blocks in regular expressions and other quoted constructs (<code>/(?{...})/</code> and <code>qq/${...}/</code>) [perl #114040].</p>

</li>
<li><p>Formats are no longer created after compilation errors.</p>

</li>
<li><p>Under debugging builds, the <b>-DA</b> command line option started crashing in Perl v5.16.0. It has been fixed [perl #114368].</p>

</li>
<li><p>A potential deadlock scenario involving the premature termination of a pseudo- forked child in a Windows build with ithreads enabled has been fixed. This resolves the common problem of the <i>t/op/fork.t</i> test hanging on Windows [perl #88840].</p>

</li>
<li><p>The code which generates errors from <code>require()</code> could potentially read one or two bytes before the start of the filename for filenames less than three bytes long and ending <code>/\.p?\z/</code>. This has now been fixed. Note that it could never have happened with module names given to <code>use()</code> or <code>require()</code> anyway.</p>

</li>
<li><p>The handling of pathnames of modules given to <code>require()</code> has been made thread-safe on VMS.</p>

</li>
<li><p>Non-blocking sockets have been fixed on VMS.</p>

</li>
<li><p>Pod can now be nested in code inside a quoted construct outside of a string eval. This used to work only within string evals [perl #114040].</p>

</li>
<li><p><code>goto &#39;&#39;</code> now looks for an empty label, producing the &quot;goto must have label&quot; error message, instead of exiting the program [perl #111794].</p>

</li>
<li><p><code>goto &quot;\0&quot;</code> now dies with &quot;Can&#39;t find label&quot; instead of &quot;goto must have label&quot;.</p>

</li>
<li><p>The C function <code>hv_store</code> used to result in crashes when used on <code>%^H</code> [perl #111000].</p>

</li>
<li><p>A call checker attached to a closure prototype via <code>cv_set_call_checker</code> is now copied to closures cloned from it. So <code>cv_set_call_checker</code> now works inside an attribute handler for a closure.</p>

</li>
<li><p>Writing to <code>$^N</code> used to have no effect. Now it croaks with &quot;Modification of a read-only value&quot; by default, but that can be overridden by a custom regular expression engine, as with <code>$1</code> [perl #112184].</p>

</li>
<li><p><code>undef</code> on a control character glob (<code>undef *^H</code>) no longer emits an erroneous warning about ambiguity [perl #112456].</p>

</li>
<li><p>For efficiency&#39;s sake, many operators and built-in functions return the same scalar each time. Lvalue subroutines and subroutines in the CORE:: namespace were allowing this implementation detail to leak through. <code>print &amp;CORE::uc(&quot;a&quot;), &amp;CORE::uc(&quot;b&quot;)</code> used to print &quot;BB&quot;. The same thing would happen with an lvalue subroutine returning the return value of <code>uc</code>. Now the value is copied in such cases.</p>

</li>
<li><p><code>method {}</code> syntax with an empty block or a block returning an empty list used to crash or use some random value left on the stack as its invocant. Now it produces an error.</p>

</li>
<li><p><code>vec</code> now works with extremely large offsets (&gt;2 GB) [perl #111730].</p>

</li>
<li><p>Changes to overload settings now take effect immediately, as do changes to inheritance that affect overloading. They used to take effect only after <code>bless</code>.</p>

<p>Objects that were created before a class had any overloading used to remain non-overloaded even if the class gained overloading through <code>use overload</code> or @ISA changes, and even after <code>bless</code>. This has been fixed [perl #112708].</p>

</li>
<li><p>Classes with overloading can now inherit fallback values.</p>

</li>
<li><p>Overloading was not respecting a fallback value of 0 if there were overloaded objects on both sides of an assignment operator like <code>+=</code> [perl #111856].</p>

</li>
<li><p><code>pos</code> now croaks with hash and array arguments, instead of producing erroneous warnings.</p>

</li>
<li><p><code>while(each %h)</code> now implies <code>while(defined($_ = each %h))</code>, like <code>readline</code> and <code>readdir</code>.</p>

</li>
<li><p>Subs in the CORE:: namespace no longer crash after <code>undef *_</code> when called with no argument list (<code>&amp;CORE::time</code> with no parentheses).</p>

</li>
<li><p><code>unpack</code> no longer produces the &quot;&#39;/&#39; must follow a numeric type in unpack&quot; error when it is the data that are at fault [perl #60204].</p>

</li>
<li><p><code>join</code> and <code>&quot;@array&quot;</code> now call FETCH only once on a tied <code>$&quot;</code> [perl #8931].</p>

</li>
<li><p>Some subroutine calls generated by compiling core ops affected by a <code>CORE::GLOBAL</code> override had op checking performed twice. The checking is always idempotent for pure Perl code, but the double checking can matter when custom call checkers are involved.</p>

</li>
<li><p>A race condition used to exist around fork that could cause a signal sent to the parent to be handled by both parent and child. Signals are now blocked briefly around fork to prevent this from happening [perl #82580].</p>

</li>
<li><p>The implementation of code blocks in regular expressions, such as <code>(?{})</code> and <code>(??{})</code>, has been heavily reworked to eliminate a whole slew of bugs. The main user-visible changes are:</p>

<ul>

<li><p>Code blocks within patterns are now parsed in the same pass as the surrounding code; in particular it is no longer necessary to have balanced braces: this now works:</p>

<pre><code>/(?{  $x=&#39;{&#39;  })/</code></pre>

<p>This means that this error message is no longer generated:</p>

<pre><code class="plaintext">Sequence (?{...}) not terminated or not {}-balanced in regex</code></pre>

<p>but a new error may be seen:</p>

<pre><code class="plaintext">Sequence (?{...}) not terminated with &#39;)&#39;</code></pre>

<p>In addition, literal code blocks within run-time patterns are only compiled once, at perl compile-time:</p>

<pre><code>    for my $p (...) {
        # this &#39;FOO&#39; block of code is compiled once,
	# at the same time as the surrounding &#39;for&#39; loop
        /$p{(?{FOO;})/;
    }</code></pre>

</li>
<li><p>Lexical variables are now sane as regards scope, recursion and closure behavior. In particular, <code>/A(?{B})C/</code> behaves (from a closure viewpoint) exactly like <code>/A/ &amp;&amp; do { B } &amp;&amp; /C/</code>, while <code>qr/A(?{B})C/</code> is like <code>sub {/A/ &amp;&amp; do { B } &amp;&amp; /C/}</code>. So this code now works how you might expect, creating three regexes that match 0, 1, and 2:</p>

<pre><code>for my $i (0..2) {
    push @r, qr/^(??{$i})$/;
}
&quot;1&quot; =~ $r[1]; # matches</code></pre>

</li>
<li><p>The <code>use re &#39;eval&#39;</code> pragma is now only required for code blocks defined at runtime; in particular in the following, the text of the <code>$r</code> pattern is still interpolated into the new pattern and recompiled, but the individual compiled code-blocks within <code>$r</code> are reused rather than being recompiled, and <code>use re &#39;eval&#39;</code> isn&#39;t needed any more:</p>

<pre><code>my $r = qr/abc(?{....})def/;
/xyz$r/;</code></pre>

</li>
<li><p>Flow control operators no longer crash. Each code block runs in a new dynamic scope, so <code>next</code> etc. will not see any enclosing loops. <code>return</code> returns a value from the code block, not from any enclosing subroutine.</p>

</li>
<li><p>Perl normally caches the compilation of run-time patterns, and doesn&#39;t recompile if the pattern hasn&#39;t changed, but this is now disabled if required for the correct behavior of closures. For example:</p>

<pre><code>    my $code = &#39;(??{$x})&#39;;
    for my $x (1..3) {
	# recompile to see fresh value of $x each time
        $x =~ /$code/;
    }</code></pre>

</li>
<li><p>The <code>/msix</code> and <code>(?msix)</code> etc. flags are now propagated into the return value from <code>(??{})</code>; this now works:</p>

<pre><code>&quot;AB&quot; =~ /a(??{&#39;b&#39;})/i;</code></pre>

</li>
<li><p>Warnings and errors will appear to come from the surrounding code (or for run-time code blocks, from an eval) rather than from an <code>re_eval</code>:</p>

<pre><code>use re &#39;eval&#39;; $c = &#39;(?{ warn &quot;foo&quot; })&#39;; /$c/;
/(?{ warn &quot;foo&quot; })/;</code></pre>

<p>formerly gave:</p>

<pre><code class="plaintext">foo at (re_eval 1) line 1.
foo at (re_eval 2) line 1.</code></pre>

<p>and now gives:</p>

<pre><code class="plaintext">foo at (eval 1) line 1.
foo at /some/prog line 2.</code></pre>

</li>
</ul>

</li>
<li><p>Perl now can be recompiled to use any Unicode version. In v5.16, it worked on Unicodes 6.0 and 6.1, but there were various bugs if earlier releases were used; the older the release the more problems.</p>

</li>
<li><p><code>vec</code> no longer produces &quot;uninitialized&quot; warnings in lvalue context [perl #9423].</p>

</li>
<li><p>An optimization involving fixed strings in regular expressions could cause a severe performance penalty in edge cases. This has been fixed [perl #76546].</p>

</li>
<li><p>In certain cases, including empty subpatterns within a regular expression (such as <code>(?:)</code> or <code>(?:|)</code>) could disable some optimizations. This has been fixed.</p>

</li>
<li><p>The &quot;Can&#39;t find an opnumber&quot; message that <code>prototype</code> produces when passed a string like &quot;CORE::nonexistent_keyword&quot; now passes UTF-8 and embedded NULs through unchanged [perl #97478].</p>

</li>
<li><p><code>prototype</code> now treats magical variables like <code>$1</code> the same way as non-magical variables when checking for the CORE:: prefix, instead of treating them as subroutine names.</p>

</li>
<li><p>Under threaded perls, a runtime code block in a regular expression could corrupt the package name stored in the op tree, resulting in bad reads in <code>caller</code>, and possibly crashes [perl #113060].</p>

</li>
<li><p>Referencing a closure prototype (<code>\&amp;{$_[1]}</code> in an attribute handler for a closure) no longer results in a copy of the subroutine (or assertion failures on debugging builds).</p>

</li>
<li><p><code>eval &#39;__PACKAGE__&#39;</code> now returns the right answer on threaded builds if the current package has been assigned over (as in <code>*ThisPackage:: = *ThatPackage::</code>) [perl #78742].</p>

</li>
<li><p>If a package is deleted by code that it calls, it is possible for <code>caller</code> to see a stack frame belonging to that deleted package. <code>caller</code> could crash if the stash&#39;s memory address was reused for a scalar and a substitution was performed on the same scalar [perl #113486].</p>

</li>
<li><p><code>UNIVERSAL::can</code> no longer treats its first argument differently depending on whether it is a string or number internally.</p>

</li>
<li><p><code>open</code> with <code>&lt;&amp;</code> for the mode checks to see whether the third argument is a number, in determining whether to treat it as a file descriptor or a handle name. Magical variables like <code>$1</code> were always failing the numeric check and being treated as handle names.</p>

</li>
<li><p><code>warn</code>&#39;s handling of magical variables (<code>$1</code>, ties) has undergone several fixes. <code>FETCH</code> is only called once now on a tied argument or a tied <code>$@</code> [perl #97480]. Tied variables returning objects that stringify as &quot;&quot; are no longer ignored. A tied <code>$@</code> that happened to return a reference the <i>previous</i> time it was used is no longer ignored.</p>

</li>
<li><p><code>warn &quot;&quot;</code> now treats <code>$@</code> with a number in it the same way, regardless of whether it happened via <code>$@=3</code> or <code>$@=&quot;3&quot;</code>. It used to ignore the former. Now it appends &quot;\t...caught&quot;, as it has always done with <code>$@=&quot;3&quot;</code>.</p>

</li>
<li><p>Numeric operators on magical variables (e.g., <span style="white-space: nowrap;"><code>$1 + 1</code></span>) used to use floating point operations even where integer operations were more appropriate, resulting in loss of accuracy on 64-bit platforms [perl #109542].</p>

</li>
<li><p>Unary negation no longer treats a string as a number if the string happened to be used as a number at some point. So, if <code>$x</code> contains the string &quot;dogs&quot;, <code>-$x</code> returns &quot;-dogs&quot; even if <code>$y=0+$x</code> has happened at some point.</p>

</li>
<li><p>In Perl v5.14, <code>-&#39;-10&#39;</code> was fixed to return &quot;10&quot;, not &quot;+10&quot;. But magical variables (<code>$1</code>, ties) were not fixed till now [perl #57706].</p>

</li>
<li><p>Unary negation now treats strings consistently, regardless of the internal <code>UTF8</code> flag.</p>

</li>
<li><p>A regression introduced in Perl v5.16.0 involving <code>tr/<i>SEARCHLIST</i>/<i>REPLACEMENTLIST</i>/</code> has been fixed. Only the first instance is supposed to be meaningful if a character appears more than once in <code><i>SEARCHLIST</i></code>. Under some circumstances, the final instance was overriding all earlier ones. [perl #113584]</p>

</li>
<li><p>Regular expressions like <code>qr/\87/</code> previously silently inserted a NUL character, thus matching as if it had been written <code>qr/\00087/</code>. Now it matches as if it had been written as <code>qr/87/</code>, with a message that the sequence <code>&quot;\8&quot;</code> is unrecognized.</p>

</li>
<li><p><code>__SUB__</code> now works in special blocks (<code>BEGIN</code>, <code>END</code>, etc.).</p>

</li>
<li><p>Thread creation on Windows could theoretically result in a crash if done inside a <code>BEGIN</code> block. It still does not work properly, but it no longer crashes [perl #111610].</p>

</li>
<li><p><code>\&amp;{&#39;&#39;}</code> (with the empty string) now autovivifies a stub like any other sub name, and no longer produces the &quot;Unable to create sub&quot; error [perl #94476].</p>

</li>
<li><p>A regression introduced in v5.14.0 has been fixed, in which some calls to the <code>re</code> module would clobber <code>$_</code> [perl #113750].</p>

</li>
<li><p><code>do FILE</code> now always either sets or clears <code>$@</code>, even when the file can&#39;t be read. This ensures that testing <code>$@</code> first (as recommended by the documentation) always returns the correct result.</p>

</li>
<li><p>The array iterator used for the <code>each @array</code> construct is now correctly reset when <code>@array</code> is cleared [perl #75596]. This happens, for example, when the array is globally assigned to, as in <code>@array = (...)</code>, but not when its <b>values</b> are assigned to. In terms of the XS API, it means that <code>av_clear()</code> will now reset the iterator.</p>

<p>This mirrors the behaviour of the hash iterator when the hash is cleared.</p>

</li>
<li><p><code>$class-&gt;can</code>, <code>$class-&gt;isa</code>, and <code>$class-&gt;DOES</code> now return correct results, regardless of whether that package referred to by <code>$class</code> exists [perl #47113].</p>

</li>
<li><p>Arriving signals no longer clear <code>$@</code> [perl #45173].</p>

</li>
<li><p>Allow <code>my ()</code> declarations with an empty variable list [perl #113554].</p>

</li>
<li><p>During parsing, subs declared after errors no longer leave stubs [perl #113712].</p>

</li>
<li><p>Closures containing no string evals no longer hang on to their containing subroutines, allowing variables closed over by outer subroutines to be freed when the outer sub is freed, even if the inner sub still exists [perl #89544].</p>

</li>
<li><p>Duplication of in-memory filehandles by opening with a &quot;&lt;&amp;=&quot; or &quot;&gt;&amp;=&quot; mode stopped working properly in v5.16.0. It was causing the new handle to reference a different scalar variable. This has been fixed [perl #113764].</p>

</li>
<li><p><code>qr//</code> expressions no longer crash with custom regular expression engines that do not set <code>offs</code> at regular expression compilation time [perl #112962].</p>

</li>
<li><p><code>delete local</code> no longer crashes with certain magical arrays and hashes [perl #112966].</p>

</li>
<li><p><code>local</code> on elements of certain magical arrays and hashes used not to arrange to have the element deleted on scope exit, even if the element did not exist before <code>local</code>.</p>

</li>
<li><p><code>scalar(write)</code> no longer returns multiple items [perl #73690].</p>

</li>
<li><p>String to floating point conversions no longer misparse certain strings under <code>use locale</code> [perl #109318].</p>

</li>
<li><p><code>@INC</code> filters that die no longer leak memory [perl #92252].</p>

</li>
<li><p>The implementations of overloaded operations are now called in the correct context. This allows, among other things, being able to properly override <code>&lt;&gt;</code> [perl #47119].</p>

</li>
<li><p>Specifying only the <code>fallback</code> key when calling <code>use overload</code> now behaves properly [perl #113010].</p>

</li>
<li><p><code>sub foo { my $a = 0; while ($a) { ... } }</code> and <code>sub foo { while (0) { ... } }</code> now return the same thing [perl #73618].</p>

</li>
<li><p>String negation now behaves the same under <code>use integer;</code> as it does without [perl #113012].</p>

</li>
<li><p><code>chr</code> now returns the Unicode replacement character (U+FFFD) for -1, regardless of the internal representation. -1 used to wrap if the argument was tied or a string internally.</p>

</li>
<li><p>Using a <code>format</code> after its enclosing sub was freed could crash as of perl v5.12.0, if the format referenced lexical variables from the outer sub.</p>

</li>
<li><p>Using a <code>format</code> after its enclosing sub was undefined could crash as of perl v5.10.0, if the format referenced lexical variables from the outer sub.</p>

</li>
<li><p>Using a <code>format</code> defined inside a closure, which format references lexical variables from outside, never really worked unless the <code>write</code> call was directly inside the closure. In v5.10.0 it even started crashing. Now the copy of that closure nearest the top of the call stack is used to find those variables.</p>

</li>
<li><p>Formats that close over variables in special blocks no longer crash if a stub exists with the same name as the special block before the special block is compiled.</p>

</li>
<li><p>The parser no longer gets confused, treating <code>eval foo ()</code> as a syntax error if preceded by <code>print;</code> [perl #16249].</p>

</li>
<li><p>The return value of <code>syscall</code> is no longer truncated on 64-bit platforms [perl #113980].</p>

</li>
<li><p>Constant folding no longer causes <code>print 1 ? FOO : BAR</code> to print to the FOO handle [perl #78064].</p>

</li>
<li><p><code>do subname</code> now calls the named subroutine and uses the file name it returns, instead of opening a file named &quot;subname&quot;.</p>

</li>
<li><p>Subroutines looked up by rv2cv check hooks (registered by XS modules) are now taken into consideration when determining whether <code>foo bar</code> should be the sub call <code>foo(bar)</code> or the method call <code>&quot;bar&quot;-&gt;foo</code>.</p>

</li>
<li><p><code>CORE::foo::bar</code> is no longer treated specially, allowing global overrides to be called directly via <code>CORE::GLOBAL::uc(...)</code> [perl #113016].</p>

</li>
<li><p>Calling an undefined sub whose typeglob has been undefined now produces the customary &quot;Undefined subroutine called&quot; error, instead of &quot;Not a CODE reference&quot;.</p>

</li>
<li><p>Two bugs involving @ISA have been fixed. <code>*ISA = *glob_without_array</code> and <code>undef *ISA; @{*ISA}</code> would prevent future modifications to @ISA from updating the internal caches used to look up methods. The *glob_without_array case was a regression from Perl v5.12.</p>

</li>
<li><p>Regular expression optimisations sometimes caused <code>$</code> with <code>/m</code> to produce failed or incorrect matches [perl #114068].</p>

</li>
<li><p><code>__SUB__</code> now works in a <code>sort</code> block when the enclosing subroutine is predeclared with <code>sub foo;</code> syntax [perl #113710].</p>

</li>
<li><p>Unicode properties only apply to Unicode code points, which leads to some subtleties when regular expressions are matched against above-Unicode code points. There is a warning generated to draw your attention to this. However, this warning was being generated inappropriately in some cases, such as when a program was being parsed. Non-Unicode matches such as <code>\w</code> and <code>[:word:]</code> should not generate the warning, as their definitions don&#39;t limit them to apply to only Unicode code points. Now the message is only generated when matching against <code>\p{}</code> and <code>\P{}</code>. There remains a bug, [perl #114148], for the very few properties in Unicode that match just a single code point. The warning is not generated if they are matched against an above-Unicode code point.</p>

</li>
<li><p>Uninitialized warnings mentioning hash elements would only mention the element name if it was not in the first bucket of the hash, due to an off-by-one error.</p>

</li>
<li><p>A regular expression optimizer bug could cause multiline &quot;^&quot; to behave incorrectly in the presence of line breaks, such that <code>&quot;/\n\n&quot; =~ m#\A(?:^/$)#im</code> would not match [perl #115242].</p>

</li>
<li><p>Failed <code>fork</code> in list context no longer corrupts the stack. <code>@a = (1, 2, fork, 3)</code> used to gobble up the 2 and assign <code>(1, undef, 3)</code> if the <code>fork</code> call failed.</p>

</li>
<li><p>Numerous memory leaks have been fixed, mostly involving tied variables that die, regular expression character classes and code blocks, and syntax errors.</p>

</li>
<li><p>Assigning a regular expression (<code>${qr//}</code>) to a variable that happens to hold a floating point number no longer causes assertion failures on debugging builds.</p>

</li>
<li><p>Assigning a regular expression to a scalar containing a number no longer causes subsequent numification to produce random numbers.</p>

</li>
<li><p>Assigning a regular expression to a magic variable no longer wipes away the magic. This was a regression from v5.10.</p>

</li>
<li><p>Assigning a regular expression to a blessed scalar no longer results in crashes. This was also a regression from v5.10.</p>

</li>
<li><p>Regular expression can now be assigned to tied hash and array elements with flattening into strings.</p>

</li>
<li><p>Numifying a regular expression no longer results in an uninitialized warning.</p>

</li>
<li><p>Negative array indices no longer cause EXISTS methods of tied variables to be ignored. This was a regression from v5.12.</p>

</li>
<li><p>Negative array indices no longer result in crashes on arrays tied to non-objects.</p>

</li>
<li><p><code>$byte_overload .= $utf8</code> no longer results in doubly-encoded UTF-8 if the left-hand scalar happened to have produced a UTF-8 string the last time overloading was invoked.</p>

</li>
<li><p><code>goto &amp;sub</code> now uses the current value of @_, instead of using the array the subroutine was originally called with. This means <code>local @_ = (...); goto &amp;sub</code> now works [perl #43077].</p>

</li>
<li><p>If a debugger is invoked recursively, it no longer stomps on its own lexical variables. Formerly under recursion all calls would share the same set of lexical variables [perl #115742].</p>

</li>
<li><p><code>*_{ARRAY}</code> returned from a subroutine no longer spontaneously becomes empty.</p>

</li>
<li><p>When using <code>say</code> to print to a tied filehandle, the value of <code>$\</code> is correctly localized, even if it was previously undef. [perl #119927]</p>

</li>
</ul>

<h1 id="Known-Problems"><a class="permalink" href="perl5180delta.html#Known-Problems">#</a><a id="Known"></a>Known Problems</h1>

<ul>

<li><p>UTF8-flagged strings in <code>%ENV</code> on HP-UX 11.00 are buggy</p>

<p>The interaction of UTF8-flagged strings and <code>%ENV</code> on HP-UX 11.00 is currently dodgy in some not-yet-fully-diagnosed way. Expect test failures in <i>t/op/magic.t</i>, followed by unknown behavior when storing wide characters in the environment.</p>

</li>
</ul>

<h1 id="Obituary"><a class="permalink" href="perl5180delta.html#Obituary">#</a>Obituary</h1>

<p>Hojung Yoon (AMORETTE), 24, of Seoul, South Korea, went to his long rest on May 8, 2013 with llama figurine and autographed TIMTOADY card. He was a brilliant young Perl 5 &amp; 6 hacker and a devoted member of Seoul.pm. He programmed Perl, talked Perl, ate Perl, and loved Perl. We believe that he is still programming in Perl with his broken IBM laptop somewhere. He will be missed.</p>

<h1 id="Acknowledgements"><a class="permalink" href="perl5180delta.html#Acknowledgements">#</a>Acknowledgements</h1>

<p>Perl v5.18.0 represents approximately 12 months of development since Perl v5.16.0 and contains approximately 400,000 lines of changes across 2,100 files from 113 authors.</p>

<p>Perl continues to flourish into its third decade thanks to a vibrant community of users and developers. The following people are known to have contributed the improvements that became Perl v5.18.0:</p>

<p>Aaron Crane, Aaron Trevena, Abhijit Menon-Sen, Adrian M. Enache, Alan Haggai Alavi, Alexandr Ciornii, Andrew Tam, Andy Dougherty, Anton Nikishaev, Aristotle Pagaltzis, Augustina Blair, Bob Ernst, Brad Gilbert, Breno G. de Oliveira, Brian Carlson, Brian Fraser, Charlie Gonzalez, Chip Salzenberg, Chris &#39;BinGOs&#39; Williams, Christian Hansen, Colin Kuskie, Craig A. Berry, Dagfinn Ilmari Mannsåker, Daniel Dragan, Daniel Perrett, Darin McBride, Dave Rolsky, David Golden, David Leadbeater, David Mitchell, David Nicol, Dominic Hargreaves, E. Choroba, Eric Brine, Evan Miller, Father Chrysostomos, Florian Ragwitz, François Perrad, George Greer, Goro Fuji, H.Merijn Brand, Herbert Breunung, Hugo van der Sanden, Igor Zaytsev, James E Keenan, Jan Dubois, Jasmine Ahuja, Jerry D. Hedden, Jess Robinson, Jesse Luehrs, Joaquin Ferrero, Joel Berger, John Goodyear, John Peacock, Karen Etheridge, Karl Williamson, Karthik Rajagopalan, Kent Fredric, Leon Timmermans, Lucas Holt, Lukas Mai, Marcus Holland-Moritz, Markus Jansen, Martin Hasch, Matthew Horsfall, Max Maischein, Michael G Schwern, Michael Schroeder, Moritz Lenz, Nicholas Clark, Niko Tyni, Oleg Nesterov, Patrik Hägglund, Paul Green, Paul Johnson, Paul Marquess, Peter Martini, Rafael Garcia-Suarez, Reini Urban, Renee Baecker, Rhesa Rozendaal, Ricardo Signes, Robin Barker, Ronald J. Kimball, Ruslan Zakirov, Salvador Fandiño, Sawyer X, Scott Lanning, Sergey Alekseev, Shawn M Moore, Shirakata Kentaro, Shlomi Fish, Sisyphus, Smylers, Steffen Müller, Steve Hay, Steve Peters, Steven Schubiger, Sullivan Beck, Sven Strickroth, Sébastien Aperghis-Tramoni, Thomas Sibley, Tobias Leich, Tom Wyant, Tony Cook, Vadim Konovalov, Vincent Pit, Volker Schatz, Walt Mankowski, Yves Orton, Zefram.</p>

<p>The list above is almost certainly incomplete as it is automatically generated from version control history. In particular, it does not include the names of the (very much appreciated) contributors who reported issues to the Perl bug tracker.</p>

<p>Many of the changes included in this version originated in the CPAN modules included in Perl&#39;s core. We&#39;re grateful to the entire CPAN community for helping Perl to flourish.</p>

<p>For a more complete list of all of Perl&#39;s historical contributors, please see the <i>AUTHORS</i> file in the Perl source distribution.</p>

<h1 id="Reporting-Bugs"><a class="permalink" href="perl5180delta.html#Reporting-Bugs">#</a><a id="Reporting"></a>Reporting Bugs</h1>

<p>If you find what you think is a bug, you might check the articles recently posted to the comp.lang.perl.misc newsgroup and the perl bug database at http://rt.perl.org/perlbug/ . There may also be information at http://www.perl.org/ , the Perl Home Page.</p>

<p>If you believe you have an unreported bug, please run the <a href="perlbug.html">perlbug</a> program included with your release. Be sure to trim your bug down to a tiny but sufficient test case. Your bug report, along with the output of <code>perl -V</code>, will be sent off to perlbug@perl.org to be analysed by the Perl porting team.</p>

<p>If the bug you are reporting has security implications, which make it inappropriate to send to a publicly archived mailing list, then please send it to perl5-security-report@perl.org. This points to a closed subscription unarchived mailing list, which includes all the core committers, who will be able to help assess the impact of issues, figure out a resolution, and help co-ordinate the release of patches to mitigate or fix the problem across all platforms on which Perl is supported. Please only use this address for security issues in the Perl core, not for modules independently distributed on CPAN.</p>

<h1 id="SEE-ALSO"><a class="permalink" href="perl5180delta.html#SEE-ALSO">#</a><a id="SEE"></a>SEE ALSO</h1>

<p>The <i>Changes</i> file for an explanation of how to view exhaustive details on what changed.</p>

<p>The <i>INSTALL</i> file for how to build Perl.</p>

<p>The <i>README</i> file for general stuff.</p>

<p>The <i>Artistic</i> and <i>Copying</i> files for copyright information.</p>


      </div>
      <div id="footer">
        <p>Perldoc Browser is maintained by Dan Book (<a href="https://metacpan.org/author/DBOOK">DBOOK</a>). Please contact him via the <a href="https://github.com/Grinnz/perldoc-browser/issues">GitHub issue tracker</a> or <a href="mailto:dbook@cpan.org">email</a> regarding any issues with the site itself, search, or rendering of documentation.</p>

<p>The Perl documentation is maintained by the Perl 5 Porters in the development of Perl. Please contact them via the <a href="https://github.com/Perl/perl5/issues">Perl issue tracker</a>, the <a href="https://lists.perl.org/list/perl5-porters.html">mailing list</a>, or <a href="https://kiwiirc.com/client/irc.perl.org/p5p">IRC</a> to report any issues with the contents or format of the documentation.</p>


      </div>
    </div>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.slim.min.js" integrity="sha512-/DXTXr6nQodMUiq+IUJYCt2PPOUjrHJ9wFrqpJ3XkgPNOZVfMok7cRw6CSxyCQxXn6ozlESsSh1/sMCTF1rL/g==" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.1/umd/popper.min.js" integrity="sha512-ubuT8Z88WxezgSqf3RLuNi5lmjstiJcyezx34yIU2gAHonIi27Na7atqzUZCOoY4CExaoFumzOsFQ2Ch+I/HCw==" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
    <script src="../highlight.pack.js"></script>
    <script>hljs.highlightAll();</script>
  </body>
</html>
